sdk-search / com.tomtom.online.sdk.search / SearchApi / poiPhotoDownload

poiPhotoDownload

@Beta(2020, 12) abstract fun poiPhotoDownload(specification: PoiPhotoSpecification!): Result<Bitmap!>!

Performs a synchronous POI Photo download action based on the provided object and returns the Bitmap. This method should be run on a separate thread. Running it on the main thread will result in android.os.NetworkOnMainThreadException.

Parameters

specification - PoiPhotoSpecification!: The object containing the data necessary to execute a POI Photo download action.

@Beta(2020, 12) abstract fun poiPhotoDownload(specification: PoiPhotoSpecification!, callback: PoiPhotoCallback!): Unit

Performs a POI Photo download action based on the provided object and returns the result using the callback implementation.

Parameters

specification - PoiPhotoSpecification!: The object containing the data necessary to execute a POI Photo download action.