Declaration

The state of an inactive or completed pack is computed lazily and is set to
MGLOfflinePackStateUnknown by default. To request the pack’s status, use the
-requestProgress method. To get notified when the state becomes known and
when it changes, observe KVO change notifications on this pack’s state key
path. Alternatively, you can add an observer for
MGLOfflinePackProgressChangedNotifications about this pack that come from the
default notification center.

Declaration

The progress of an inactive or completed pack is computed lazily, and all its
fields are set to 0 by default. To request the pack’s progress, use the
-requestProgress method. To get notified when the progress becomes
known and when it changes, observe KVO change notifications on this pack’s
state key path. Alternatively, you can add an observer for
MGLOfflinePackProgressChangedNotifications about this pack that come from the
default notification center.

Declaration

A pack resumes asynchronously. To get notified when this pack resumes, observe
KVO change notifications on this pack’s state key path. Alternatively, you
can add an observer for MGLOfflinePackProgressChangedNotifications about this
pack that come from the default notification center.

When a pack resumes after being suspended, it may begin by iterating over the
already downloaded resources. As a result, the progress structure’s
countOfResourcesCompleted field may revert to 0 before rapidly returning to
the level of progress at the time the pack was suspended.

Declaration

A pack suspends asynchronously. To get notified when this pack resumes, observe
KVO change notifications on this pack’s state key path. Alternatively, you
can add an observer for MGLOfflinePackProgressChangedNotification about this
pack that come from the default notification center.

If the pack previously reached a higher level of progress before being
suspended, it may wait to suspend until it returns to that level.

Declaration

Request an asynchronous update to the pack’s state and progress properties.

The state and progress of an inactive or completed pack are computed lazily. If
you need the state or progress of a pack whose state property is currently
set to MGLOfflinePackStateUnknown, observe KVO change notifications on this
pack’s state key path, then call this method. Alternatively, you can add an
observer for MGLOfflinePackProgressChangedNotification about this pack that
come from the default notification center.