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

PoiDetailsCallback

@PublicPreview("2021.06") 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 successfully obtained.