android-components / / SearchEngineFilter


interface SearchEngineFilter (source)

Interface for classes that want to filter the list of search engines a SearchEngineProvider implementation loads.


Name Summary
filter abstract fun filter(context: <ERROR CLASS>, searchEngine: SearchEngine): Boolean
Returns true if the given search engine should be returned by the provider or false if this search engine should be ignored.

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.