目录

class info
com.huawei.hms.mlsdk.model.download.MLModelDownloadStrategy

离线模型下载条件配置器。

支持配置条件:1. 充电状态;2. Wi-Fi连接状态;3. 设备空闲状态。

Public Method Summary

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

Public Methods

Method
public boolean isChargingNeed()
是否需要设备处于充电状态。

Return

Typedesc
boolean需要返回true,否则返回false。
Method
public boolean isDeviceIdleNeed()
是否需要设备处于空闲状态。

Return

Typedesc
boolean需要返回true,否则返回false。
Method
public boolean isWifiNeed()
是否需要设备处于Wi-Fi连接状态。

Return

Typedesc
boolean需要返回true,否则返回false。