mapbox-plugin-offline

//mapboxpluginoffline/io.github.xit0c.mapboxpluginoffline/OfflineDownloadReceiver

OfflineDownloadReceiver

[androidJvm]
open class OfflineDownloadReceiver : BroadcastReceiver

This BroadcastReceiver can be used to intercept OfflineService events and monitor active downloads.

Constructors

   
OfflineDownloadReceiver [androidJvm]
fun OfflineDownloadReceiver()

Functions

Name Summary
getActiveDownloads [androidJvm]
fun getActiveDownloads(): List<OfflineDownload>
Returns a list of current active downloads.
onActiveDownloadsChanged [androidJvm]
open fun onActiveDownloadsChanged(context: Context, activeDownloads: List<OfflineDownload>)
Called when activeDownloads list changes. Override this to respond to generic changes.
onCreate [androidJvm]
@CallSuper
open fun onCreate(context: Context, download: OfflineDownload)
Called when a download is created, see OfflineManager.CreateOfflineRegionCallback.onCreate().
onCreateError [androidJvm]
open fun onCreateError(context: Context, options: OfflineDownloadOptions, error: String?)
Called when a download creation fails, see OfflineManager.CreateOfflineRegionCallback.onError().
onDelete [androidJvm]
@CallSuper
open fun onDelete(context: Context, download: OfflineDownload)
Called when a download is canceled and the region deleted, see OfflineRegion.OfflineRegionDeleteCallback.onDelete().
onDeleteError [androidJvm]
@CallSuper
open fun onDeleteError(context: Context, download: OfflineDownload, error: String?)
Called when a download is canceled but the region deletion fails, see OfflineRegion.OfflineRegionDeleteCallback.onError().
onObserverError [androidJvm]
@CallSuper
open fun onObserverError(context: Context, download: OfflineDownload, reason: String?, message: String?)
Called when a download observer fails, see OfflineRegion.OfflineRegionObserver.onError().
onStatusChanged [androidJvm]
@CallSuper
open fun onStatusChanged(context: Context, download: OfflineDownload)
Called when a download changes its status, see OfflineRegion.OfflineRegionObserver.onStatusChanged().
onTileCountLimitExceeded [androidJvm]
@CallSuper
open fun onTileCountLimitExceeded(context: Context, download: OfflineDownload, limit: Long)
Called when a download tile count exceeds limit, see OfflineRegion.OfflineRegionObserver.mapboxTileCountLimitExceeded().
register [androidJvm]
@CallSuper
open fun register(context: Context)
Registers this receiver to all the actions.
unregister [androidJvm]
@CallSuper
open fun unregister(context: Context)
Unregisters this receiver and clears the internal list returned by getActiveDownloads.