android-components / / SearchEngine


class SearchEngine (source)

A data class representing a search engine.


Name Summary
canProvideSearchSuggestions val canProvideSearchSuggestions: Boolean
icon val icon: <ERROR CLASS>
identifier val identifier: String
name val name: String


Name Summary
buildSearchUrl fun buildSearchUrl(searchTerm: String): String
Builds a URL to search for the given search terms with this search engine.
buildSuggestionsURL fun buildSuggestionsURL(searchTerm: String): String?
Builds a URL to get suggestions from this search engine.
toString fun toString(): String

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.