addOfflineRegion

abstract fun addOfflineRegion(path: String, mapsFileNames: List<String>, boundaryFileName: String, executor: Executor, callback: OfflineSearchEngine.AddRegionCallback): AsyncOperationTask

Register offline region data for search index.

Return

an object representing pending completion of the task.

Parameters

path

Path to the directory with data on disk, for example, "/data/user/0/com.mapbox.search.sample/files/offline_data/germany".

mapsFileNames

List of map file names (e.g. listOf("germany.map"), or listOf("us-west.map", "us-south.map", ...)).

boundaryFileName

Boundary file name (e.g. germany.boundary, or us-places.boundary).

executor

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

callback

The callback to be invoked when the offline region has been added to the engine.

open fun addOfflineRegion(path: String, mapsFileNames: List<String>, boundaryFileName: String, callback: OfflineSearchEngine.AddRegionCallback): AsyncOperationTask

Register offline region data for search index.

Return

an object representing pending completion of the task.

Parameters

path

Path to the directory with data on disk, for example, "/data/user/0/com.mapbox.search.sample/files/offline_data/germany".

mapsFileNames

List of map file names (e.g. listOf("germany.map"), or listOf("us-west.map", "us-south.map", ...)).

boundaryFileName

Boundary file name (e.g. germany.boundary, or us-places.boundary).

callback

The callback to be invoked on the main thread when the offline region has been added to the engine.