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. Important: You shall attribute all results delivered by the Points of Interest Details endpoint and Points of Interest Photos endpoint as being ‘powered by Foursquare'.

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. Important: You shall attribute all results delivered by the Points of Interest Details endpoint and Points of Interest Photos endpoint as being ‘powered by Foursquare'.

Parameters

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