SearchSelectionCallback

Functions

Link copied to clipboard
abstract fun onError(e: Exception)

Called if an error occurred during the request.

Link copied to clipboard
abstract fun onResult(suggestion: SearchSuggestion, result: SearchResult, responseInfo: ResponseInfo)

Called when final SearchResult resolved.

Link copied to clipboard
abstract fun onResults(suggestion: SearchSuggestion, results: List<SearchResult>, responseInfo: ResponseInfo)

Called when suggestion selection returned more than one result. This may happen when selected suggestion of type SearchSuggestionType.Category or SearchSuggestionType.Brand.

Link copied to clipboard
abstract fun onSuggestions(suggestions: List<SearchSuggestion>, responseInfo: ResponseInfo)

Called when the suggestions list is returned.