MBMOfflineRegionObserver
Deprecated
@protocol MBMOfflineRegionObserver
A region can have a single observer, which gets notified whenever a change to the region’s status occurs.
-
Implement this method to be notified of a change in the status of an offline region. Status changes include any change in state of the members of
offline region status.Declaration
Objective-C
- (void)statusChangedForStatus:(nonnull MBMOfflineRegionStatus *)status;Swift
func statusChanged(for status: MBMOfflineRegionStatus) -
Implement this method to be notified of errors encountered while downloading regional resources. Such errors may be recoverable; for example the implementation will attempt to re-request failed resources based on an exponential backoff algorithm, or when it detects that network access has been restored.
Declaration
Objective-C
- (void)responseErrorForError:(nonnull MBMResponseError *)error;Swift
func responseError(forError error: MBMResponseError) -
Implement this method to be notified when the limit on the number of Mapbox tiles stored for offline regions has been reached.
Declaration
Objective-C
- (void)mapboxTileCountLimitExceededForLimit:(uint64_t)limit;Swift
func mapboxTileCountLimitExceeded(forLimit limit: UInt64)
MBMOfflineRegionObserver Protocol Reference