public class AdditionalDataSearchApiImpl extends java.lang.Object implements AdditionalDataSearchApi
Constructor and Description |
---|
AdditionalDataSearchApiImpl(OnlineSearchServiceConfiguration config) |
Modifier and Type | Method and Description |
---|---|
Single<AdditionalDataSearchResponse> |
additionalDataSearch(AdditionalDataSearchQuery query)
Performs reactive additional data search action based on provided query object
and returns the result to Observers subscribed to returned Observable.
|
void |
additionalDataSearch(AdditionalDataSearchQuery query,
AdditionalDataSearchResultListener listener)
Performs additional data search action based on provided query object and returns the result with usage of callback implementation.
|
void |
cancelSearchIfRunning()
Cancels the current along route search request.
|
Scheduler |
getResultScheduler() |
Scheduler |
getWorkingScheduler() |
public AdditionalDataSearchApiImpl(OnlineSearchServiceConfiguration config)
config
- search service connection configuration.@NonNull public Scheduler getWorkingScheduler()
getWorkingScheduler
in interface com.tomtom.online.sdk.common.rx.RxContext
@NonNull public Scheduler getResultScheduler()
getResultScheduler
in interface com.tomtom.online.sdk.common.rx.RxContext
public Single<AdditionalDataSearchResponse> additionalDataSearch(AdditionalDataSearchQuery query)
AdditionalDataSearchApi
additionalDataSearch
in interface AdditionalDataSearchApi
query
- Object which contains data necessary to execute search actionpublic void additionalDataSearch(AdditionalDataSearchQuery query, AdditionalDataSearchResultListener listener)
AdditionalDataSearchApi
additionalDataSearch
in interface AdditionalDataSearchApi
query
- The object which contains data necessary to execute search action.listener
- The callback which informs the subscriber when search result is available.public void cancelSearchIfRunning()
AdditionalDataSearchApi
cancelSearchIfRunning
in interface AdditionalDataSearchApi