OfflineRegionObserver

A region can have a single observer, which gets notified whenever a change to the region's status occurs.

Functions

Link copied to clipboard
abstract fun mapboxTileCountLimitExceeded(limit: Long)
Link copied to clipboard
abstract fun onError(error: OfflineRegionError)

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.

Link copied to clipboard
abstract fun onStatusChanged(status: OfflineRegionStatus)

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 OfflineRegionStatus.