sdk-search / com.tomtom.online.sdk.search.autocomplete / AutocompleteSuggestionCallback

AutocompleteSuggestionCallback

@Beta(2020, 12) interface AutocompleteSuggestionCallback

Callback which is responsible to inform about a received AutocompleteSuggestion or respective error.

Functions

onError

abstract fun onError(error: SearchException): Unit

Called when an error occurs during the process of obtaining the AutocompleteSuggestion.

onSuccess

abstract fun onSuccess(autocompleteSuggestion: AutocompleteSuggestion): Unit

Called when an AutocompleteSuggestion has been obtained successfully.