categorySearch

@MapboxExperimental
abstract fun categorySearch(categoryNames: List<String>, options: OfflineCategorySearchOptions, executor: Executor, callback: OfflineSearchCallback): AsyncOperationTask

Performs category search request. Each new search request cancels the previous one if it is still in progress. In this case OfflineSearchCallback.onError will be called with com.mapbox.search.common.SearchCancellationException.

Return

AsyncOperationTask object which allows to cancel the request.

Parameters

categoryNames

List of categories to search.

options

Category search options.

executor

Executor used for events dispatching. By default events are dispatched on the main thread.

callback

The callback to handle search result on the main thread.


@MapboxExperimental
open fun categorySearch(categoryNames: List<String>, options: OfflineCategorySearchOptions, callback: OfflineSearchCallback): AsyncOperationTask

Performs category search request. Each new search request cancels the previous one if it is still in progress. In this case OfflineSearchCallback.onError will be called with com.mapbox.search.common.SearchCancellationException.

Return

AsyncOperationTask object which allows to cancel the request.

Parameters

categoryNames

List of categories to search.

options

Category search options.

callback

The callback to handle search result. Events are dispatched on the main thread.


@MapboxExperimental
open fun categorySearch(categoryName: String, options: OfflineCategorySearchOptions, executor: Executor, callback: OfflineSearchCallback): AsyncOperationTask

Performs category search request. Each new search request cancels the previous one if it is still in progress. In this case OfflineSearchCallback.onError will be called with com.mapbox.search.common.SearchCancellationException.

Return

AsyncOperationTask object which allows to cancel the request.

Parameters

categoryName

Name of category to search.

options

Category search options.

executor

Executor used for events dispatching. By default events are dispatched on the main thread.

callback

The callback to handle search result on the main thread.


@MapboxExperimental
open fun categorySearch(categoryName: String, options: OfflineCategorySearchOptions, callback: OfflineSearchCallback): AsyncOperationTask

Performs category search request. Each new search request cancels the previous one if it is still in progress. In this case OfflineSearchCallback.onError will be called with com.mapbox.search.common.SearchCancellationException.

Return

AsyncOperationTask object which allows to cancel the request.

Parameters

categoryName

Name of category to search.

options

Category search options.

callback

The callback to handle search result. Events are dispatched on the main thread.