android-components / mozilla.components.concept.toolbar / AutocompleteResult

AutocompleteResult

data class AutocompleteResult (source)

Describes an autocompletion result.

Constructors

Name Summary
<init> AutocompleteResult(input: String, text: String, url: String, source: String, totalItems: Int)
Describes an autocompletion result.

Properties

Name Summary
input val input: String
Input for which this AutocompleteResult is being provided.
source val source: String
Name of the autocompletion source.
text val text: String
AutocompleteResult of autocompletion, text to be displayed.
totalItems val totalItems: Int
A total number of results also available.
url val url: String
AutocompleteResult of autocompletion, full matching url.

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.