android-components / mozilla.components.feature.toolbar / ToolbarAutocompleteFeature

ToolbarAutocompleteFeature

class ToolbarAutocompleteFeature (source)

Feature implementation for connecting a toolbar with a list of autocomplete providers.

Constructors

Name Summary
<init> ToolbarAutocompleteFeature(toolbar: Toolbar, engine: Engine? = null)
Feature implementation for connecting a toolbar with a list of autocomplete providers.

Properties

Name Summary
engine val engine: Engine?
(optional) instance of a browser Engine to issue Engine.speculativeConnect calls on successful URL autocompletion.
toolbar val toolbar: Toolbar
the Toolbar to connect to autocomplete providers.

Functions

Name Summary
addDomainProvider fun addDomainProvider(provider: DomainAutocompleteProvider): Unit
addHistoryStorageProvider fun addHistoryStorageProvider(provider: HistoryStorage): Unit

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.