sdk-search / com.tomtom.online.sdk.search.api.autocomplete / AutocompleteSearchResultListener

AutocompleteSearchResultListener

interface AutocompleteSearchResultListener

Listener for the Autocomplete search results.

Functions

onSearchError

abstract fun onSearchError(error: SearchError!): Unit

Method responsible to handle the Autocomplete Search Response when the search returns an error. Within this callback the user will obtain a SearchError containing a Throwable fail reason.

onSearchResult

abstract fun onSearchResult(autocompleteResponse: AutocompleteSearchResponse!): Unit

Method responsible to handle the Autocomplete search Response when the search returns results. Within this callback the user will obtain a Response populated with the AutocompleteSearchResult results.