FirebaseModelDownloadConditions class

Download conditions for downloading a model via the getModel API.

Constructors

FirebaseModelDownloadConditions({bool iosAllowsCellularAccess = true, bool iosAllowsBackgroundDownloading = false, bool androidChargingRequired = false, bool androidWifiRequired = false, bool androidDeviceIdleRequired = false})
Creates a new DownloadConditions instance.

Properties

androidChargingRequired bool
Indicates whether the model can only be downloaded whilst the device is charging.
getter/setter pair
androidDeviceIdleRequired bool
Indicates whether the model can only be downloaded whilst the device is idle.
getter/setter pair
androidWifiRequired bool
Indicates whether the model can only be downloaded whilst the device is connected to Wifi.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
iosAllowsBackgroundDownloading bool
Indicates whether the model can be downloaded while the app is in the background.
getter/setter pair
iosAllowsCellularAccess bool
Indicates whether download requests should be made over a cellular network.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, bool>
Converts the instance to a Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited