Companion

object Companion

Companion object.

Functions

Link copied to clipboard

Creates a new instance of the SearchEngine with a default ApiType. A new instance doesn't have any IndexableDataProvider registered by default.

Creates a new instance of the SearchEngine. A new instance doesn't have any IndexableDataProvider registered by default.

fun createSearchEngineWithBuiltInDataProviders(settings: SearchEngineSettings, executor: Executor = SearchSdkMainThreadWorker.mainExecutor, callback: CompletionCallback<Unit> = StubCompletionCallback()): SearchEngine

Creates a new instance of the SearchEngine with a default ApiType and default data providers ( com.mapbox.search.record.HistoryDataProvider and com.mapbox.search.record.FavoritesDataProvider) registered by default.

fun createSearchEngineWithBuiltInDataProviders(apiType: ApiType, settings: SearchEngineSettings, executor: Executor = SearchSdkMainThreadWorker.mainExecutor, callback: CompletionCallback<Unit> = StubCompletionCallback()): SearchEngine

Creates a new instance of the SearchEngine with default data providers ( com.mapbox.search.record.HistoryDataProvider and com.mapbox.search.record.FavoritesDataProvider) registered by default.