android-components / mozilla.components.browser.search / SearchEngineManager / getDefaultSearchEngine

getDefaultSearchEngine

@Synchronized fun getDefaultSearchEngine(context: Context, name: String = EMPTY): SearchEngine (source)

Returns the default search engine.

The default engine is the first engine loaded by the first provider passed to the constructor of SearchEngineManager.

Optionally a name can be passed to this method (e.g. from the user's preferences). If a matching search engine was loaded then this search engine will be returned instead.