MLNOfflinePackState enum
The state an offline pack is currently in.
Values
- MLNOfflinePackStateUnknown → const MLNOfflinePackState
-
It is unknown whether the pack is inactive, active, or complete.
This is the initial state of a pack. The state of a pack becomes known by the time the shared
MLNOfflineStorageobject sends the firstMLNOfflinePackProgressChangedNotificationabout the pack. For inactive packs, you must explicitly request a progress update using theMLNOfflinePack/requestProgressmethod.An invalid pack always has a state of
MLNOfflinePackStateInvalid, neverMLNOfflinePackState/MLNOfflinePackStateUnknown.const MLNOfflinePackState(0) - MLNOfflinePackStateInactive → const MLNOfflinePackState
-
The pack is incomplete and is not currently downloading.
This is the initial state of a pack that is created using the
MLNOfflineStorage/addPackForRegion:withContext:completionHandler:method, as well as after theMLNOfflinePack/suspendmethod is called.const MLNOfflinePackState(1) - MLNOfflinePackStateActive → const MLNOfflinePackState
-
The pack is incomplete and is currently downloading.
This is the state of a pack after the
MLNOfflinePack/resumemethod is called.const MLNOfflinePackState(2) - MLNOfflinePackStateComplete → const MLNOfflinePackState
-
The pack has downloaded to completion.
const MLNOfflinePackState(3) - MLNOfflinePackStateInvalid → const MLNOfflinePackState
-
The pack has been removed using the
MLNOfflineStorage/removePack:withCompletionHandler:method. Sending any message to the pack will raise an exception.const MLNOfflinePackState(4)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
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
Static Methods
-
fromValue(
int value) → MLNOfflinePackState
Constants
-
values
→ const List<
MLNOfflinePackState> - A constant List of the values in this enum, in order of their declaration.