TileStore

open class TileStore

TileStore manages downloads and storage for requests to tile-related API endpoints, enforcing a disk usage quota: tiles available on disk may be deleted to make room for a new download. This interface can be used by an app developer to set the disk quota. The rest of TileStore API is intended for native SDK consumption only.

Functions

Link copied to clipboard
Adds a new observer to the TileStore instance.
Link copied to clipboard
Computes a polygon of the area covered by the tiles cached in TileStore with the specified TilesetDescriptors.
Link copied to clipboard
Creates a TileStore instance at the default location.
Creates a TileStore instance for the given storage path.
Link copied to clipboard
Returns a list of the existing tile regions.
Link copied to clipboard
Returns a tile region by its id.
Link copied to clipboard
Returns a tile region's associated geometry The region associated geometry is provided by the client and it represents the area, which the tile region must cover.
Link copied to clipboard
Returns a tile region's associated metadata The region's associated metadata that a user previously set for this region.
Link copied to clipboard
open fun loadResource(@NonNull description: ResourceDescription, @NonNull options: ResourceLoadOptions, @NonNull progressCallback: ResourceLoadProgressCallback, @NonNull resultCallback: ResourceLoadResultCallback): Cancelable
Link copied to clipboard
An overloaded version that does not report progess or finished status of the loading operation.
An overloaded version that does not report progess of the loading operation.
Loads a new tile region or updates the existing one.
Link copied to clipboard
Removes an existing observer from the TileStore instance.
Link copied to clipboard
Removes a tile region.
An overloaded version with a callback for feedback.
Link copied to clipboard
open fun setOption(@NonNull key: String, @NonNull value: Value)
Sets additional options for this instance.
open fun setOption(@NonNull key: String, @NonNull domain: TileDataDomain, @NonNull value: Value)
Sets additional options for this instance that are specific to a data type.
Link copied to clipboard
Checks if a tile region with the given id contains all tilesets and resources from all of the given tileset descriptors.