目录

class info
com.huawei.hms.mlsdk.model.download.MLModelDownloadStrategy
Download condition configurator of offline models.The following conditions can be configured: 1. Charging status; 2. Wi-Fi connection status; 3. Device status (idle or not)

Public Method Summary

Return typeMethod name
booleanisChargingNeed()
booleanisDeviceIdleNeed()
booleanisWifiNeed()

Public Methods

Method
public boolean isChargingNeed()
Requires the device to be in charging state or not.

Return

Typedesc
booleantrue if yes; false otherwise.
Method
public boolean isDeviceIdleNeed()
Requires the device to be in idle state or not.

Return

Typedesc
booleantrue if yes; false otherwise.
Method
public boolean isWifiNeed()
Requires the device to have Wi-Fi connection or not.

Return

Typedesc
booleantrue if yes; false otherwise.