sdk-search / com.tomtom.online.sdk.search.poi.photos / PoiPhotoSpecification / Builder

Builder

@Beta(2020, 12) class Builder

Builder used to create an instance of PoiPhotoSpecification. Once constructed, the user cannot change the field values.

Parameters

id - The ID of a photo.

Constructors

<init>

Builder(id: UUID)

Builder used to create an instance of PoiPhotoSpecification. Once constructed, the user cannot change the field values.

Functions

build

fun build(): PoiPhotoSpecification

Constructs a new PoiPhotoSpecification.

photoDimensions

fun photoDimensions(photoDimensions: PhotoDimensions): PoiPhotoSpecification.Builder

Specifies the dimensions of the returned photo.

poiPhotoCacheStrategy

fun poiPhotoCacheStrategy(poiPhotoCacheStrategy: PoiPhotoCacheStrategy): PoiPhotoSpecification.Builder

Specifies the caching strategy for this photo.