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

AutocompleteSuggestionCallback

@PublicPreview("2021.06") interface AutocompleteSuggestionCallback

Callback that informs 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 successfully obtained.