onError

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.

This method will be executed on the main thread.

Parameters

error

the offline region error message