add Offline Region
Register offline region data for search index.
Return
an object representing pending completion of the task.
Parameters
Path to the directory with data on disk, for example, "/data/user/0/com.mapbox.search.sample/files/offline_data/germany".
List of map file names (e.g. listOf("germany.map"), or listOf("us-west.map", "us-south.map", ...)).
Boundary file name (e.g. germany.boundary, or us-places.boundary).
Executor used for events dispatching. By default events are dispatched on the main thread.
The callback to be invoked when the offline region has been added to the engine.
Register offline region data for search index.
Return
an object representing pending completion of the task.
Parameters
Path to the directory with data on disk, for example, "/data/user/0/com.mapbox.search.sample/files/offline_data/germany".
List of map file names (e.g. listOf("germany.map"), or listOf("us-west.map", "us-south.map", ...)).
Boundary file name (e.g. germany.boundary, or us-places.boundary).
The callback to be invoked on the main thread when the offline region has been added to the engine.