OfflineRegionManager

class OfflineRegionManager : OfflineRegionManagerInterface

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.

Constructors

OfflineRegionManager
Link copied to clipboard
open fun OfflineRegionManager(resourceOptions: ResourceOptions)
Construct a new offline manager.

Functions

createOfflineRegion
Link copied to clipboard
open fun createOfflineRegion(geometryDefinition: OfflineRegionGeometryDefinition, callback: OfflineRegionCreateCallback)
Creates a new offline region based on a geometry
open fun createOfflineRegion(tilePyramidDefinition: OfflineRegionTilePyramidDefinition, callback: OfflineRegionCreateCallback)
Creates a new offline region based on a tile pyramid
getOfflineRegions
Link copied to clipboard
open fun getOfflineRegions(callback: OfflineRegionCallback)
Invoke a call to fetch a list of offline regions.
mergeOfflineDatabase
Link copied to clipboard
open fun mergeOfflineDatabase(filePath: String, callback: OfflineDatabaseMergeCallback)
Merge offline regions from a secondary database into the main offline database.
setOfflineMapboxTileCountLimit
Link copied to clipboard
open fun setOfflineMapboxTileCountLimit(limit: Long)
Sets the maximum number of Mapbox-hosted tiles that may be downloaded and stored on the current device.