android-components / mozilla.components.concept.awesomebar / AwesomeBar / SuggestionProvider

# SuggestionProvider

`interface SuggestionProvider` (source)

A SuggestionProvider is queried by an AwesomeBar whenever the text in the address bar is changed by the user. It returns a list of Suggestions to be displayed by the AwesomeBar.

### Functions

onInputCancelled | `open fun onInputCancelled(): Unit` Fired when the user has cancelled their interaction with the awesome bar.
onInputChanged | `abstract fun onInputChanged(text: String): List<Suggestion>` Fired whenever the user changes their input, after they have started interacting with the awesome bar.
onInputStarted | `open fun onInputStarted(): Unit` Fired when the user starts interacting with the awesome bar by entering text in the toolbar.