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

BaseDomainAutocompleteProvider

open class BaseDomainAutocompleteProvider : DomainAutocompleteProvider, CoroutineScope (source)

Provides common autocomplete functionality powered by domain lists.

Parameters

list - source of domains

domainsLoader - provider for all available domains

Constructors

Name Summary
<init> BaseDomainAutocompleteProvider(list: DomainList, domainsLoader: DomainsLoader)
Provides common autocomplete functionality powered by domain lists.

Properties

Name Summary
domains var domains: List<Domain>

Functions

Name Summary
getAutocompleteSuggestion open fun getAutocompleteSuggestion(query: String): DomainAutocompleteResult?
Computes an autocomplete suggestion for the given text, and invokes the provided callback, passing the result.
initialize fun initialize(context: <ERROR CLASS>): Unit

Extension Functions

Name Summary
launchGeckoResult fun <T> CoroutineScope.launchGeckoResult(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): GeckoResult<T>
Create a GeckoResult from a co-routine.

Inheritors

Name Summary
CustomDomainsProvider class CustomDomainsProvider : BaseDomainAutocompleteProvider
Provides autocomplete functionality for domains based on a list managed by CustomDomains.
ShippedDomainsProvider class ShippedDomainsProvider : BaseDomainAutocompleteProvider
Provides autocomplete functionality for domains based on provided list of assets (see Domains).