android-components / mozilla.components.browser.domains.autocomplete / BaseDomainAutocompleteProvider / getAutocompleteSuggestion

getAutocompleteSuggestion

open fun getAutocompleteSuggestion(query: String): DomainAutocompleteResult? (source)

Overrides DomainAutocompleteProvider.getAutocompleteSuggestion

Computes an autocomplete suggestion for the given text, and invokes the provided callback, passing the result.

Parameters

query - text to be auto completed

Return the result of auto-completion, or null if no match is found.