interface AwesomeBar (source)
Interface to be implemented by awesome bar implementations.
An awesome bar has multiple duties:
- Display Suggestion instances and invoking its callbacks once selected
- React to outside events: onInputStarted, onInputChanged, onInputCancelled.
- Query SuggestionProvider instances for new suggestions when the text changes.
A Suggestion to be displayed by an AwesomeBar implementation.
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.
Adds the following SuggestionProvider instances to be queried for Suggestions whenever the text changes.
Casts this awesome bar to an Android View object.
Fired when the user has cancelled their interaction with the awesome bar.
Fired whenever the user changes their input, after they have started interacting with the awesome bar.
Fired when the user starts interacting with the awesome bar by entering text in the toolbar.
Removes all SuggestionProviders
Removes the following SuggestionProvider
Adds a lambda to be invoked when the user has finished interacting with the awesome bar (e.g. selected a suggestion).
Loads a file from the resources folder and returns its content as a string object.
A customizable AwesomeBar implementation.