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

AutocompleteSearchApi

interface AutocompleteSearchApi : RxContext

Defines the Autocomplete Search API.

Functions

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.

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.

cancelSearchIfRunning

abstract fun cancelSearchIfRunning(): Unit

Cancels the current Autocomplete search Request.