thumbnailCache

fun thumbnailCache(enabled: Boolean, cacheFolder: File?, maxCacheSize: Long?): SOCommMediaClientBuilder

Defines the cache that should be used to cache thumbnails. By default, cache is enabled and will be placed in the applications cache folder (in a subfolder "MediaClientCache") with max 25 MByte cache size. If you want to disable caching at all, or define a custom size / location, use this method.

Return

this to chain calls.

Parameters

enabled

Whether caching should be enabled. If true is passed here, the parameters cacheFolder and maxCacheSize must be not-null.

cacheFolder

The folder to place the cached files in. Should be a folder exclusively used for this cache (and not e.g. for HTTP caches as well). Needs to be set if enabled is true.

maxCacheSize

The maximum number of bytes the cache may grow. Needs to be set if enabled is true