-
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
DingiOfflineStorageobject sends the firstDingiOfflinePackProgressChangedNotificationabout the pack. For inactive packs, you must explicitly request a progress update using the-[DingiOfflinePack requestProgress]method.An invalid pack always has a state of
DingiOfflinePackStateInvalid, neverDingiOfflinePackStateUnknown.Declaration
Objective-C
DingiOfflinePackStateUnknown = 0Swift
case unknown = 0 -
The pack is incomplete and is not currently downloading.
This is the initial state of a pack that is created using the
-[DingiOfflineStorage addPackForRegion:withContext:completionHandler:]method, as well as after the-[DingiOfflinePack suspend]method is called.Declaration
Objective-C
DingiOfflinePackStateInactive = 1Swift
case inactive = 1 -
The pack is incomplete and is currently downloading.
This is the state of a pack after the
-[DingiOfflinePack resume]method is called.Declaration
Objective-C
DingiOfflinePackStateActive = 2Swift
case active = 2 -
The pack has downloaded to completion.
Declaration
Objective-C
DingiOfflinePackStateComplete = 3Swift
case complete = 3 -
The pack has been removed using the
-[DingiOfflineStorage removePack:withCompletionHandler:]method. Sending any message to the pack will raise an exception.Declaration
Objective-C
DingiOfflinePackStateInvalid = 4Swift
case invalid = 4
DingiOfflinePackState Enumeration Reference