Companion

object Companion

Companion object.

Functions

createSearchEngine
Link copied to clipboard
fun createSearchEngine(settings: SearchEngineSettings): SearchEngine
Creates a new instance of the SearchEngine with a default ApiType.
fun createSearchEngine(apiType: ApiType, settings: SearchEngineSettings): SearchEngine
Creates a new instance of the SearchEngine.
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.