onSuggestionSelected

abstract fun onSuggestionSelected(searchSuggestion: SearchSuggestion): Boolean

Called when a suggestion is clicked. This allows listeners to get a chance to process click on their own. SearchResultsView will not process the click if this function returns true. If multiple listeners are registered and any of them has processed the click, all the remaining listeners will not be invoked.

If non of the added listeners processed the selection, this SearchEngineUiAdapter will proceed with the SearchEngine.select call.

Return

True if the listener has processed the click, false otherwise.

Parameters

searchSuggestion

The clicked SearchSuggestion object.