Google is committed to advancing racial equity for Black communities. See how.

CustomModelDownloadConditions.Builder

public static class CustomModelDownloadConditions.Builder extends Object

Public Constructor Summary

Public Method Summary

CustomModelDownloadConditions
CustomModelDownloadConditions.Builder
requireCharging()
Sets charging as required.
CustomModelDownloadConditions.Builder
requireDeviceIdle()
Sets device idle as required.
CustomModelDownloadConditions.Builder
requireWifi()
Sets wifi as required.

Inherited Method Summary

Public Constructors

public CustomModelDownloadConditions.Builder ()

Public Methods

public CustomModelDownloadConditions.Builder requireCharging ()

Sets charging as required. Only works on Android N and above.

public CustomModelDownloadConditions.Builder requireDeviceIdle ()

Sets device idle as required.

Idle mode is a loose definition provided by the system, which means that the device is not in use, and has not been in use for some time.

Only works on Android N and above.

public CustomModelDownloadConditions.Builder requireWifi ()

Sets wifi as required.