CacheWarmingEffect

fun CacheWarmingEffect(adUnits: Map<String, Int>, onComplete: (Int, Int) -> Unit? = null)

A Compose effect for managing native ad cache warming.

This effect warms up the cache by pre-loading ads for specified ad units. It's useful for improving user experience by having ads ready.

Parameters

adUnits

Map of ad unit ID to number of ads to pre-cache

onComplete

Optional callback when warming is complete