sdk-search / com.tomtom.online.sdk.search.poi.photos / PoiPhotoCallback

PoiPhotoCallback

@PublicPreview("2021.06") interface PoiPhotoCallback

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

Functions

onError

abstract fun onError(error: SearchException): Unit

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

onSuccess

abstract fun onSuccess(bitmap: Bitmap): Unit

Called when a POI Photo has been successfully downloaded.