| Package | com.tuarua.firebase.ml.common.modeldownload | 
| Class | public class ModelDownloadConditions | 
| Inheritance | ModelDownloadConditions  Object | 
| Property | Defined By | ||
|---|---|---|---|
| canDownloadInBackground : Boolean [read-only] 
     Indicates whether the model can be downloaded while the app is in the background. | ModelDownloadConditions | ||
| isChargingRequired : Boolean [read-only] 
     true if charging is required for download. | ModelDownloadConditions | ||
| isDeviceIdleRequired : Boolean [read-only] 
     true if device idle is required for download. | ModelDownloadConditions | ||
| isWiFiRequired : Boolean [read-only] 
     Indicates whether Wi-Fi is required for downloading. | ModelDownloadConditions | ||
| Method | Defined By | ||
|---|---|---|---|
| ModelDownloadConditions(isWiFiRequired:Boolean, canDownloadInBackground:Boolean = false, isChargingRequired:Boolean = false, isDeviceIdleRequired:Boolean = false) 
     Creates an instance of ModelDownloadConditions with the given conditions. | ModelDownloadConditions | ||
| canDownloadInBackground | property | 
canDownloadInBackground:Boolean  [read-only] Indicates whether the model can be downloaded while the app is in the background. iOS only.
 The default value is false.
    public function get canDownloadInBackground():Boolean| isChargingRequired | property | 
isChargingRequired:Boolean  [read-only] true if charging is required for download. Android N+ only
 The default value is false.
    public function get isChargingRequired():Boolean| isDeviceIdleRequired | property | 
isDeviceIdleRequired:Boolean  [read-only] true if device idle is required for download. Android N+ only
 The default value is false.
    public function get isDeviceIdleRequired():Boolean| isWiFiRequired | property | 
isWiFiRequired:Boolean  [read-only] Indicates whether Wi-Fi is required for downloading.
 The default value is false.
    public function get isWiFiRequired():Boolean| ModelDownloadConditions | () | Constructor | 
public function ModelDownloadConditions(isWiFiRequired:Boolean, canDownloadInBackground:Boolean = false, isChargingRequired:Boolean = false, isDeviceIdleRequired:Boolean = false)
     Creates an instance of ModelDownloadConditions with the given conditions.
     
     
| isWiFiRequired:Boolean— Whether a device has to be connected to Wi-Fi for downloading to start. | |
| canDownloadInBackground:Boolean(default =false)— Whether the model can be downloaded while the app is in the
         background. | |
| isChargingRequired:Boolean(default =false) | |
| isDeviceIdleRequired:Boolean(default =false) |