OfflineManager

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.

Constructors

Link copied to clipboard
open fun OfflineManager()
Construct a new `offline manager`.

Functions

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