SearchListener

interface SearchListener

Search results view listener.

Functions

onCategoryResultsShown
Link copied to clipboard
abstract fun onCategoryResultsShown(suggestion: SearchSuggestion, results: List<SearchResult>, responseInfo: ResponseInfo)
Called when a category results are resolved and displayed on the view.
onError
Link copied to clipboard
abstract fun onError(e: Exception)
Called when error occurs during the search request, i.e.
onFeedbackItemClick
Link copied to clipboard
abstract fun onFeedbackItemClick(responseInfo: ResponseInfo)
Called when "Missing result" button is clicked.
onHistoryItemClick
Link copied to clipboard
abstract fun onHistoryItemClick(historyRecord: HistoryRecord)
Called when a history item is clicked.
onOfflineSearchResultSelected
Link copied to clipboard
abstract fun onOfflineSearchResultSelected(searchResult: OfflineSearchResult, responseInfo: OfflineResponseInfo)
Called when a user when a user selects one of the currently displayed OfflineSearchResults.
onOfflineSearchResultsShown
Link copied to clipboard
abstract fun onOfflineSearchResultsShown(results: List<OfflineSearchResult>, responseInfo: OfflineResponseInfo)
Called when offline search results shown, i.e.
onPopulateQueryClick
Link copied to clipboard
abstract fun onPopulateQueryClick(suggestion: SearchSuggestion, responseInfo: ResponseInfo)
Called when search suggestion's "Populate query" button is clicked.
onSearchResultSelected
Link copied to clipboard
abstract fun onSearchResultSelected(searchResult: SearchResult, responseInfo: ResponseInfo)
Called when a user retrieves SearchResult from one of currently displayed on the views (i.e.
onSuggestionSelected
Link copied to clipboard
abstract fun onSuggestionSelected(searchSuggestion: SearchSuggestion): Boolean
Called when a suggestion is clicked.
onSuggestionsShown
Link copied to clipboard
abstract fun onSuggestionsShown(suggestions: List<SearchSuggestion>, responseInfo: ResponseInfo)
Called when the suggestions are received and displayed on the view.