OfflineManagerInterface

interface OfflineManagerInterface

An `offline manager` manages downloads and storage for style packages and also produces tileset descriptors for the `tile store`. All the asynchronous methods calls complete even if the `offline manager` instance gets out of scope before.

Functions

createTilesetDescriptor
Link copied to clipboard
abstract fun createTilesetDescriptor(tilesetDescriptorOptions: TilesetDescriptorOptions): TilesetDescriptor
Construct a new `tileset descriptor` for the `tile store`.
getAllStylePacks
Link copied to clipboard
abstract fun getAllStylePacks(callback: StylePacksCallback)
Returns a list of the existing style packages.
getStylePack
Link copied to clipboard
abstract fun getStylePack(styleURI: String, callback: StylePackCallback)
Returns a style package by its id.
getStylePackMetadata
Link copied to clipboard
abstract fun getStylePackMetadata(styleURI: String, callback: StylePackMetadataCallback)
Returns a style package's associated metadata The style package's associated metadata that a user previously set.
loadStylePack
Link copied to clipboard
abstract fun loadStylePack(styleURI: String, loadOptions: StylePackLoadOptions, onFinished: StylePackCallback): Cancelable
An overloaded version that does not report progess of the loading operation.
abstract fun loadStylePack(styleURI: String, loadOptions: StylePackLoadOptions, onProgress: StylePackLoadProgressCallback, onFinished: StylePackCallback): Cancelable
Loads a new style package or updates the existing one.
removeStylePack
Link copied to clipboard
abstract fun removeStylePack(styleURI: String)
Removes a style package.

Inheritors

OfflineManager
Link copied to clipboard