Interstitial

fun Interstitial(state: AdInterstitialState, modifier: Modifier = Modifier)

Composable used to display the AdPlacementType.INTERSTITIAL ad.

Note: When using this composable, all registered renderers should confirm to the AdComposeRenderer interface.

Interstitial is the main presentation element for displaying full screen cover ad with Jetpack Compose. If the passed AdInterstitialState is want to be presented and passed Advertisement is loaded, the user will be able to see the appropriate renderer on their screen.

If you have called the AdInterstitialState.presentIfLoaded method but the Advertisement is not yet loaded, the ad will be displayed as soon as it is loaded.

Note: Interstitial is only available for AdPlacementType.INTERSTITIAL ads. If you want to display ads in your view hierarchy, use Ad with AdPlacementType.INLINE.

Note: Be careful, do not use interstitial in a Column or LazyColumn, because it will only work properly in a view which could be shown as fullscreen modal.

Parameters

state

The AdInterstitialState to control presentation.

modifier

Modifier for changing the appearance of the Interstitial.