Offline Manager Interface
interface OfflineManagerInterface
Content copied to clipboard
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
create Tileset Descriptor
Link copied to clipboard
abstract fun createTilesetDescriptor(@NonNull tilesetDescriptorOptions: TilesetDescriptorOptions): TilesetDescriptor
Content copied to clipboard
Construct a new `tileset descriptor` for the `tile store`.
abstract fun createTilesetDescriptor(@NonNull tilesetDescriptorOptionsForTilesets: TilesetDescriptorOptionsForTilesets): TilesetDescriptor
Content copied to clipboard
An overloaded version that accepts `TilesetDescriptorOptionsForTilesets`.
get All Style Packs
Link copied to clipboard
Returns a list of the existing style packages.
get Style Pack
Link copied to clipboard
abstract fun getStylePack(@NonNull styleURI: String, @NonNull callback: StylePackCallback)
Content copied to clipboard
Returns a style package by its id.
get Style Pack Metadata
Link copied to clipboard
abstract fun getStylePackMetadata(@NonNull styleURI: String, @NonNull callback: StylePackMetadataCallback)
Content copied to clipboard
Returns a style package's associated metadata The style package's associated metadata that a user previously set.
load Style Pack
Link copied to clipboard
abstract fun loadStylePack(@NonNull styleURI: String, @NonNull loadOptions: StylePackLoadOptions, @NonNull onFinished: StylePackCallback): Cancelable
Content copied to clipboard
An overloaded version that does not report progess of the loading operation.
abstract fun loadStylePack(@NonNull styleURI: String, @NonNull loadOptions: StylePackLoadOptions, @NonNull onProgress: StylePackLoadProgressCallback, @NonNull onFinished: StylePackCallback): Cancelable
Content copied to clipboard
Loads a new style package or updates the existing one.
remove Style Pack
Link copied to clipboard
Removes a style package.
Inheritors
OfflineManager
Link copied to clipboard