prefetch

fun prefetch(context: Context, adUnitId: String, type: GfpAdCacheType, callback: GfpAdCacheManager.PrefetchCallback? = null)

Prefetch and cache response and resources of ad to disk. The number of ad cache files stored on disk cannot exceed 5 per ad unit. It's recommended to call from a worker thread because it involves file I/O.

Parameters

context

context

adUnitId

ad unit ID for ad prefetching

callback

callback for ad prefetching