| class info |
| com.huawei.hms.mlsdk.model.download.MLModelDownloadStrategy |
离线模型下载条件配置器。 支持配置条件:1. 充电状态;2. Wi-Fi连接状态;3. 设备空闲状态。 |
| Return type | Method name |
| boolean | isChargingNeed() |
| boolean | isDeviceIdleNeed() |
| boolean | isWifiNeed() |
| Method |
| public boolean isChargingNeed() |
| 是否需要设备处于充电状态。 |
Return
| Type | desc |
| boolean | 需要返回true,否则返回false。 |
| Method |
| public boolean isDeviceIdleNeed() |
| 是否需要设备处于空闲状态。 |
Return
| Type | desc |
| boolean | 需要返回true,否则返回false。 |
| Method |
| public boolean isWifiNeed() |
| 是否需要设备处于Wi-Fi连接状态。 |
Return
| Type | desc |
| boolean | 需要返回true,否则返回false。 |