class SearchEngineManager
(source)
This class provides access to a centralized registry of search engines.
SearchEngineManager(providers: List<SearchEngineProvider> = listOf(
AssetsSearchEngineProvider(LocaleSearchLocalizationProvider())))
This class provides access to a centralized registry of search engines. |
fun getDefaultSearchEngine(context: Context, name: String = EMPTY): SearchEngine
Returns the default search engine. |
|
fun getSearchEngines(context: Context): List<SearchEngine>
Returns all search engines. If no call to load() has been made then calling this method will perform a load. |
|
suspend fun load(context: Context): Deferred<List<SearchEngine>>
Asynchronously load search engines from providers. Inherits caller's CoroutineScope.coroutineContext. |
|
fun registerForLocaleUpdates(context: Context): Unit
Registers for ACTION_LOCALE_CHANGED broadcasts and automatically reloads the search engines whenever the locale changes. |