We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesML Kitmlsdk.model.downloadMLModelDownloadStrategyOverview

MLModelDownloadStrategy

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.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.