sdk-search / com.tomtom.online.sdk.search.poi.details / PoiDetailsCallback

PoiDetailsCallback

@Beta(2020, 12) interface PoiDetailsCallback

Callback which is responsible to inform about a received PoiDetails or respective error.

Functions

onError

abstract fun onError(error: SearchException): Unit

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

onSuccess

abstract fun onSuccess(poiDetails: PoiDetails): Unit

Called when a PoiDetails has been obtained successfully.