InterstitialAdState

State holder for interstitial ad management in Compose.

Constructors

Link copied to clipboard
constructor(adUnitId: String, context: ComponentActivity)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun forceShowAd(onShown: () -> Unit? = null, onDismissed: () -> Unit? = null)

Forces the ad to show immediately.

Link copied to clipboard
fun forceShowAdWithDialog(onShown: () -> Unit? = null, onDismissed: () -> Unit? = null)

Forces the ad to show with a loading dialog.

Link copied to clipboard
fun loadAd()

Loads an interstitial ad.

Link copied to clipboard
fun showAdByCount(maxCount: Int = 3, onShown: () -> Unit? = null, onDismissed: () -> Unit? = null)

Shows the ad using count-based logic.

Link copied to clipboard
fun showAdByTime(onShown: () -> Unit? = null, onDismissed: () -> Unit? = null)

Shows the ad using time-based logic.