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

BatchSearchResultListener

interface BatchSearchResultListener

Listener for batch search results.

Functions

onSearchError

abstract fun onSearchError(error: SearchError!): Unit

Method responsible to handle batch search response when search returns error. Within this callback user will obtain SearchError containing a Throwable fail reason.

onSearchResult

abstract fun onSearchResult(batchSearchResponse: BatchSearchResponse!): Unit

Method responsible to handle batch search response when search returns results. Within this callback user will obtain Response populated with Results.