android-components / mozilla.components.feature.awesomebar.provider / HistoryStorageSuggestionProvider / onInputChanged

# onInputChanged

`suspend fun onInputChanged(text: String): List<Suggestion>` (source)

Overrides SuggestionProvider.onInputChanged

Fired whenever the user changes their input, after they have started interacting with the awesome bar.

This is a suspending function. An AwesomeBar implementation is expected to invoke this method from a Coroutine. This allows the AwesomeBar implementation to group and cancel calls to multiple providers.

Coroutine cancellation is cooperative. A coroutine code has to cooperate to be cancellable: https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/cancellation-and-timeouts.md

### Parameters

`text` - The current user input in the toolbar.

Return
A list of suggestions to be displayed by the AwesomeBar.