getCacheInstance

A method to get the built-in cache.

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.

Using this method, you can access the cache. This can be especially useful for custom renderers who want to interact with the cache.

Note: Please note that your AdService must be successfully configured before calling this method. Otherwise, you will receive an AdError.Configuration error.

Return

The cache instance or an AdError.Configuration error.