sdk-search / com.tomtom.online.sdk.search.poicategories / PoiCategoriesCallback

PoiCategoriesCallback

@Beta(2020, 12) interface PoiCategoriesCallback

Callback which is responsible to inform about a received list of the PoiCategory or respective error.

Functions

onError

abstract fun onError(error: SearchException): Unit

Called when an error occurs during the process of obtaining the PoiCategories.

onSuccess

abstract fun onSuccess(poiCategories: List<PoiCategory>): Unit

Called when a PoiCategories has been obtained successfully.