android-components / mozilla.components.browser.awesomebar.layout / SuggestionViewHolder / bind

bind

abstract fun bind(suggestion: Suggestion, selectionListener: () -> Unit): Unit (source)

Binds the views in the holder to the AwesomeBar.Suggestion.

Contract: When a suggestion was selected/clicked the view will invoke the appropriate callback of the suggestion (AwesomeBar.Suggestion.onSuggestionClicked or AwesomeBar.Suggestion.onChipClicked) as well as the provided selectionListener function.