DownloadConditions

  • DownloadConditions specifies prerequisites for downloading remote machine learning models.

  • It allows defining whether Wi-Fi and/or device charging are required for the download to begin.

  • A DownloadConditions.Builder class is used to create instances of DownloadConditions.

  • isChargingRequired() and isWifiRequired() can be used to check the download conditions.

public class DownloadConditions extends Object

Conditions to download remote models.

Nested Class Summary

class DownloadConditions.Builder Builder of DownloadConditions

Public Method Summary

boolean
equals(Object o)
Indicates whether some other object is "equal to" this one.
int
hashCode()
Returns a hash code value for the object.
boolean
isChargingRequired()
Returns true if charging is required for download.
boolean
isWifiRequired()
Returns true if wifi is required for download.

Inherited Method Summary

Public Methods

public boolean equals (Object o)

Indicates whether some other object is "equal to" this one.

public int hashCode ()

Returns a hash code value for the object.

public boolean isChargingRequired ()

Returns true if charging is required for download.

public boolean isWifiRequired ()

Returns true if wifi is required for download.