android-components / mozilla.components.browser.search.provider / SearchEngineProvider

SearchEngineProvider

interface SearchEngineProvider (source)

Interface for classes that load search engines from a specific source.

Functions

Name Summary
loadSearchEngines abstract suspend fun loadSearchEngines(context: <ERROR CLASS>): SearchEngineList
Load search engines from this provider.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
AssetsSearchEngineProvider class AssetsSearchEngineProvider : SearchEngineProvider
SearchEngineProvider implementation to load the included search engines from assets.