sdk / com.mapbox.search / SearchCallback

SearchCallback

@UiThread interface SearchCallback

Search result callback for category search and reverse geocoding. When an event happens, the corresponding method will be called on the main thread.

Functions

onError

Called in case if error occured during request.

abstract fun onError(e: Exception): Unit

onResults

Called when results are ready.

abstract fun onResults(results: List<SearchResult>): Unit