VBDOfflinePackState

enum VBDOfflinePackState : NSInteger {}

The state an offline pack is currently in.

  • 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 VBDOfflineStorage object sends the first VBDOfflinePackProgressChangedNotification about the pack. For inactive packs, you must explicitly request a progress update using the -[VBDOfflinePack requestProgress] method.

    An invalid pack always has a state of VBDOfflinePackStateInvalid, never VBDOfflinePackStateUnknown.

    Declaration

    Objective-C

    VBDOfflinePackStateUnknown = 0
  • The pack is incomplete and is not currently downloading.

    This is the initial state of a pack that is created using the -[VBDOfflinePack addPackForRegion:withContext:completionHandler:] method, as well as after the -[VBDOfflinePack suspend] method is called.

    Declaration

    Objective-C

    VBDOfflinePackStateInactive = 1
  • The pack is incomplete and is currently downloading.

    This is the state of a pack after the -[VBDOfflinePack resume] method is called.

    Declaration

    Objective-C

    VBDOfflinePackStateActive = 2
  • The pack has downloaded to completion.

    Declaration

    Objective-C

    VBDOfflinePackStateComplete = 3
  • The pack has been removed using the -[VBDOfflineStorage removePack:withCompletionHandler:] method. Sending any message to the pack will raise an exception.

    Declaration

    Objective-C

    VBDOfflinePackStateInvalid = 4