sdk-search / com.tomtom.online.sdk.search.api.batch / BatchSearchApi

BatchSearchApi

interface BatchSearchApi : RxContext

Defines the batch search api.

Functions

batchSearch

abstract fun batchSearch(searchQuery: BatchSearchQuery!, listener: BatchSearchResultListener!): Unit

Performs batch search action based on provided BatchSearchQuery object and returns the result with usage of callback implementation.

abstract fun batchSearch(query: BatchSearchQuery!): Single<BatchSearchResponse!>!

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

cancelSearchIfRunning

abstract fun cancelSearchIfRunning(): Unit

Cancels the current batch request

Inheritors

BatchSearchApiImpl

open class BatchSearchApiImpl : BatchSearchApi

Default implementation of the batch search service's api.