NetworkType enum
An enumeration of various network types that can be used as Constraints for work.
Fully supported on Android.
On iOS, this enumeration is used to define whether a piece of work requires internet connectivity, by checking for either NetworkType.connected or NetworkType.metered.
Constructors
- NetworkType()
-
const
Values
- connected → const NetworkType
-
Any working network connection is required for this work.
- metered → const NetworkType
-
A metered network connection is required for this work.
- not_required → const NetworkType
-
Default value. A network is not required for this work.
- not_roaming → const NetworkType
-
A non-roaming network connection is required for this work.
- unmetered → const NetworkType
-
An unmetered network connection is required for this work.
- temporarily_unmetered → const NetworkType
-
A temporarily unmetered Network. This capability will be set for networks that are generally metered, but are currently unmetered.
Android API 30+
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
NetworkType> - A constant List of the values in this enum, in order of their declaration.