add Offline Region
abstract fun addOfflineRegion(path: String, mapsFileNames: List<String>, boundaryFileName: String, callback: OfflineSearchEngine.AddRegionCallback): AsyncOperationTask
Content copied to clipboard
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.