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

PoiPhotoCacheStrategy

@Beta(2020, 12) data class PoiPhotoCacheStrategy

Describes the caching strategy of a photo that will be loaded.

Parameters

diskCacheStrategy - Specifies the disk caching. Disk caching is disabled by default.

enableMemoryCaching - Specifies if memory caching should be enabled. Memory caching is disabled by default.

Constructors

<init>

PoiPhotoCacheStrategy(enableMemoryCaching: Boolean)
PoiPhotoCacheStrategy(diskCacheStrategy: DiskCacheStrategy)PoiPhotoCacheStrategy(diskCacheStrategy: DiskCacheStrategy = DiskCacheStrategy.NONE, enableMemoryCaching: Boolean = false)

Describes the caching strategy of a photo that will be loaded.

Properties

diskCacheStrategy

val diskCacheStrategy: DiskCacheStrategy

Specifies the disk caching. Disk caching is disabled by default.

enableMemoryCaching

val enableMemoryCaching: Boolean

Specifies if memory caching should be enabled. Memory caching is disabled by default.