android-components / / SearchEngineProvider


interface SearchEngineProvider (source)

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


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.


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