android-components / mozilla.components.browser.domains.autocomplete / DomainAutocompleteResult

DomainAutocompleteResult

class DomainAutocompleteResult (source)

Describes an autocompletion result against a list of domains.

Constructors

Name Summary
<init> DomainAutocompleteResult(input: String, text: String, url: String, source: String, totalItems: Int)
Describes an autocompletion result against a list of domains.

Properties

Name Summary
input val input: String
Input for which this result is being provided.
source val source: String
Name of the autocompletion source.
text val text: String
Result of autocompletion, text to be displayed.
totalItems val totalItems: Int
A total number of results also available.
url val url: String
Result 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.