loadTileRegion

abstract fun loadTileRegion(groupId: String, geometry: Geometry, executor: Executor, progressCallback: TileRegionLoadProgressCallback, completionCallback: CompletionCallback<List<OfflineTileRegion>>): AsyncOperationTask

Loads a new download region or updates the existing one. If a group with the given id already exists, new regions will be merged into that group.

Call to this function will be postponed until engine is ready (i.e. any of EngineReadyCallback callbacks called).

Return

an object representing pending completion of the task.

Parameters

groupId

Tile region group ID.

geometry

Geometry of the required region.

executor

Executor used for events dispatching. By default events are dispatched on the main thread.

progressCallback

The callback to be invoked multiple times to report progress of the loading operation.

completionCallback

The callback to be invoked only once upon success or failure of the loading operation.

open fun loadTileRegion(groupId: String, geometry: Geometry, progressCallback: TileRegionLoadProgressCallback, completionCallback: CompletionCallback<List<OfflineTileRegion>>): AsyncOperationTask

Loads a new download region or updates the existing one. If a group with the given id already exists, new regions will be merged into that group.

Call to this function will be postponed until engine is ready (i.e. any of EngineReadyCallback callbacks called).

Return

an object representing pending completion of the task.

Parameters

groupId

Tile region group ID.

geometry

Geometry of the required region.

progressCallback

The callback to be invoked on the main thread multiple times to report progress of the loading operation.

completionCallback

The callback to be invoked on the main thread only once upon success or failure of the loading operation.