RegionUpdater

API for updating map regions and listening to region state changes.

Warning: This API shall not be used together with NdsStoreUpdater or CompositeRegionsUpdater APIs.

Functions

Link copied to clipboard

Adds a listener for changes to the region structure, region states, and region operations.

Link copied to clipboard

Calculates the download size for updating the specified regions.

Link copied to clipboard

Calculates the size that would be freed by removing the specified regions.

Link copied to clipboard
abstract fun cancelOperations(regionIds: Set<Region.Id>, action: DownloadedRegionDataAction)

Cancels all the ongoing (download/deletion) operations on the specified regions.

Link copied to clipboard

Deletes the specified regions.

Link copied to clipboard

Download the specified regions.

Link copied to clipboard
abstract fun findRegionsAlongPolyline(polyline: List<GeoPoint>, radius: Distance, callback: RegionQueryCallback): Cancellable

Finds regions along a polyline.

Link copied to clipboard
abstract fun findRegionsAroundPosition(position: GeoPoint, radius: Distance, callback: RegionQueryCallback): Cancellable

Finds regions around a geographic position.

Link copied to clipboard

Removes a region info update listener.

Inherited functions

Link copied to clipboard
abstract fun close()