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

PoiPhotoCallback

@Beta(2020, 12) 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.