sdk-search / com.tomtom.online.sdk.search.api.autocomplete / AutocompleteSearchApi / autocompleteSearch

autocompleteSearch

abstract fun autocompleteSearch(query: AutocompleteSearchQuery!, listener: AutocompleteSearchResultListener!): Unit

Performs an Autocomplete search action based on the provided AutocompleteSearchQuery object and returns the result with usage of a callback implementation.

Parameters

query - AutocompleteSearchQuery!: The object which contains the data necessary to execute an Autocomplete search action.

listener - AutocompleteSearchResultListener!: The listener which informs the subscriber when a search result is available. It contains the com.tomtom.online.sdk.common.service.ServiceResponse object.

abstract fun autocompleteSearch(query: AutocompleteSearchQuery!): Single<AutocompleteSearchResponse!>!

Performs a reactive Autocomplete search action based on the provided query object, and returns the result to Observers subscribed to the returned Observable.

Parameters

query - AutocompleteSearchQuery!: The object which contains the data necessary to execute an Autocomplete search action.

Return
Single<AutocompleteSearchResponse!>!: The search Response Observable object.