| 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) |
| Return type | Method name |
| boolean | isChargingNeed() |
| boolean | isDeviceIdleNeed() |
| boolean | isWifiNeed() |
| Method |
| public boolean isChargingNeed() |
| Requires the device to be in charging state or not. |
Return
| Type | desc |
| boolean | true if yes; false otherwise. |
| Method |
| public boolean isDeviceIdleNeed() |
| Requires the device to be in idle state or not. |
Return
| Type | desc |
| boolean | true if yes; false otherwise. |
| Method |
| public boolean isWifiNeed() |
| Requires the device to have Wi-Fi connection or not. |
Return
| Type | desc |
| boolean | true if yes; false otherwise. |