Tile Store
open class TileStore
Content copied to clipboard
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
add Observer
Link copied to clipboard
Adds a new observer to the TileStore instance.
compute Covered Area
Link copied to clipboard
open fun computeCoveredArea(@NonNull descriptors: List<TilesetDescriptor>, @NonNull callback: TileRegionGeometryCallback)
Content copied to clipboard
Computes a polygon of the area covered by the tiles cached in TileStore with the specified TilesetDescriptors.
get All Tile Regions
Link copied to clipboard
Returns a list of the existing tile regions.
get Tile Region
Link copied to clipboard
open fun getTileRegion(@NonNull id: String, @NonNull callback: TileRegionCallback)
Content copied to clipboard
Returns a tile region by its id.
get Tile Region Geometry
Link copied to clipboard
open fun getTileRegionGeometry(@NonNull id: String, @NonNull callback: TileRegionGeometryCallback)
Content 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.
get Tile Region Metadata
Link copied to clipboard
open fun getTileRegionMetadata(@NonNull id: String, @NonNull callback: TileRegionMetadataCallback)
Content copied to clipboard
Returns a tile region's associated metadata The region's associated metadata that a user previously set for this region.
load Resource
Link copied to clipboard
open fun loadResource(@NonNull description: ResourceDescription, @NonNull options: ResourceLoadOptions, @NonNull progressCallback: ResourceLoadProgressCallback, @NonNull resultCallback: ResourceLoadResultCallback): Cancelable
Content copied to clipboard
load Tile Region
Link copied to clipboard
open fun loadTileRegion(@NonNull id: String, @NonNull loadOptions: TileRegionLoadOptions): Cancelable
Content copied to clipboard
An overloaded version that does not report progess or finished status of the loading operation.
open fun loadTileRegion(@NonNull id: String, @NonNull loadOptions: TileRegionLoadOptions, @NonNull onFinished: TileRegionCallback): Cancelable
Content copied to clipboard
An overloaded version that does not report progess of the loading operation.
open fun loadTileRegion(@NonNull id: String, @NonNull loadOptions: TileRegionLoadOptions, @NonNull onProgress: TileRegionLoadProgressCallback, @NonNull onFinished: TileRegionCallback): Cancelable
Content copied to clipboard
Loads a new tile region or updates the existing one.
remove Observer
Link copied to clipboard
Removes an existing observer from the TileStore instance.
remove Tile Region
Link copied to clipboard
Removes a tile region.
open fun removeTileRegion(@NonNull id: String, @NonNull callback: TileRegionCallback)
Content copied to clipboard
An overloaded version with a callback for feedback.
set Option
Link copied to clipboard
Sets additional options for this instance.
tile Region Contains Descriptors
Link copied to clipboard
open fun tileRegionContainsDescriptors(@NonNull id: String, @NonNull descriptors: List<TilesetDescriptor>, @NonNull callback: TileRegionBooleanCallback)
Content copied to clipboard
Checks if a tile region with the given id contains all tilesets from all of the given tileset descriptors.