OfflineRegionManagerInterface(androidJvm)

The `offline region manager` that manages offline packs. All of the class’s instance methods are asynchronous reflecting the fact that offline resources are stored in a database. The offline manager maintains a canonical collection of offline packs.

interface OfflineRegionManagerInterface(androidJvm)

Functions

createOfflineRegion
Link copied to clipboard

Creates a new offline region based on a geometry

abstract fun createOfflineRegion(geometryDefinition: OfflineRegionGeometryDefinition, callback: OfflineRegionCreateCallback)

Creates a new offline region based on a tile pyramid

abstract fun createOfflineRegion(tilePyramidDefinition: OfflineRegionTilePyramidDefinition, callback: OfflineRegionCreateCallback)
getOfflineRegions
Link copied to clipboard

Invoke a call to fetch a list of offline regions.

abstract fun getOfflineRegions(callback: OfflineRegionCallback)
mergeOfflineDatabase
Link copied to clipboard

Merge offline regions from a secondary database into the main offline database.

abstract fun mergeOfflineDatabase(filePath: String, callback: OfflineDatabaseMergeCallback)
setOfflineMapboxTileCountLimit
Link copied to clipboard

Sets the maximum number of Mapbox-hosted tiles that may be downloaded and stored on the current device. By default, the limit is set to 6,000. Once this limit is reached, `OfflineRegionObserver.mapboxTileCountLimitExceeded()` fires every additional attempt to download additional tiles until already downloaded tiles are removed by calling `OfflineRegion.purge()` API.

abstract fun setOfflineMapboxTileCountLimit(limit: Long)

Inheritors

OfflineRegionManager
Link copied to clipboard