AppOpenConfig
data class AppOpenConfig(val showOnColdStart: Boolean = false, val minBackgroundDuration: Duration = 4.seconds, val cooldownBetweenShows: Duration = Duration.ZERO, val preloadOnStart: Boolean = true, val coldStartTimeout: Duration = 5.seconds)(source)
Configuration for AppOpenAdCoordinator.
Parameters
showOnColdStart
Attempt to show an app-open ad during start. The load must complete within coldStartTimeout or the cold-start show is skipped — on most devices the first frame wins, so leave this off unless a splash screen covers it.
minBackgroundDuration
Minimum time the app must have been backgrounded before a foreground show.
cooldownBetweenShows
Minimum time between two coordinator-driven shows. Duration.ZERO disables the check.
preloadOnStart
Preload an ad when start is called, without showing it. Useful for apps that do not want a cold-start show but want the ad ready for the next foreground event.
coldStartTimeout
Maximum time allowed for the cold-start load before skipping the show. Default 5s.