AppOpenAdCoordinator

Orchestrates the standard app-open ad lifecycle: preload, show on return to foreground (gated by background duration, cooldown, and SDK readiness), reload after consumption. Set isBlocked while the user is in flows that must not be interrupted (purchases, onboarding, another full-screen ad).

Constructors

Link copied to clipboard
constructor(manager: AdManager, controller: AppOpenAdController, config: AppOpenConfig = AppOpenConfig())

Properties

Link copied to clipboard

When true, the coordinator skips all foreground-show attempts. Set this during purchases, onboarding, or any full-screen flow that must not be interrupted by a coordinator-driven app-open ad.

Functions

Link copied to clipboard
fun start(scope: CoroutineScope)

Starts the coordinator lifecycle. Preloads an ad (if configured) and begins listening for foreground/background transitions to show the ad.

Link copied to clipboard
fun stop()

Stops the coordinator lifecycle. Cancels the foreground listener and prevents any further automatic show attempts until start is called again.