setCacheSize

abstract suspend fun setCacheSize(sizeInMb: UShort): AdResult<Unit>

Changes the maximum cache size on disk.

The SDK has a built-in FIFO persistent cache that caches all possible advertising resources, such as banners on the device. Each renderer, even custom ones, can cache advertising images and other resources. The ad cache stores files locally to improve the performance of ads.

You can specify the maximum cache size on disk you want. The default value for disk storage is 100 MB. If the cache size is exceeded, cache content is evicted following a FIFO policy.

Return

The result of the cache size setting.

Parameters

sizeInMb

Maximum cache size in MB.