Package-level declarations

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.INTERNET")
actual fun BannerAd(ad: BannerAdHandler)

Loads and displays a Banner Ad using a Composable.

@RequiresPermission(value = "android.permission.INTERNET")
actual fun BannerAd(adUnitId: String, adSize: AdSize, onLoad: () -> Unit)
expect fun BannerAd(adUnitId: String = AdUnitId.BANNER_DEFAULT, adSize: AdSize = AdSize.FULL_BANNER, onLoad: () -> Unit = {})

Loads and displays a Banner Ad using a Composable.

actual fun BannerAd(adUnitId: String, adSize: AdSize, onLoad: () -> Unit)
Link copied to clipboard
fun ConsentPopup(consent: Consent, onFailure: (Exception) -> Unit = {})

A Composable function that requests an update to the consent information.

fun ConsentPopup(activity: Any?, onFailure: (Exception) -> Unit = {})

A composable function that requests and updates user consent information using the Google User Messaging Platform (UMP) SDK. It is designed to be used within a Composable UI context.

Link copied to clipboard
fun InterstitialAd(loadedAd: InterstitialAdHandler, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {})

Displays a pre-loaded Interstitial Ad using a Composable.

fun InterstitialAd(activity: Any?, adUnitId: String = AdUnitId.INTERSTITIAL_DEFAULT, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onLoad: () -> Unit = {})

Loads and displays an Interstitial Ad using a Composable.

Link copied to clipboard
fun rememberBannerAd(activity: Any?, adUnitId: String = AdUnitId.BANNER_DEFAULT, adSize: AdSize = AdSize.FULL_BANNER, onLoad: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}): MutableState<BannerAdHandler>

A Composable function that remembers a BannerAdHandler across compositions.

Link copied to clipboard

Composable function to remember and manage user consent for ads.

Link copied to clipboard
fun rememberInterstitialAd(activity: Any?, adUnitId: String = AdUnitId.INTERSTITIAL_DEFAULT, onLoad: () -> Unit = {}, onFailure: (Exception) -> Unit = {}): MutableState<InterstitialAdHandler>

Composable function to remember an interstitial ad.

Link copied to clipboard
fun rememberRewardedAd(activity: Any?, adUnitId: String = AdUnitId.REWARDED_DEFAULT, onLoad: () -> Unit = {}, onFailure: (Exception) -> Unit = {}): MutableState<RewardedAdHandler>

Remembers a RewardedAdHandler, which is used to load and show rewarded ads.

Link copied to clipboard
fun rememberRewardedInterstitialAd(activity: Any?, adUnitId: String = AdUnitId.REWARDED_INTERSTITIAL_DEFAULT, onLoad: () -> Unit = {}, onFailure: (Exception) -> Unit = {}): MutableState<RewardedInterstitialAdHandler>

A composable function that remembers and manages a RewardedInterstitialAdHandler.

Link copied to clipboard
fun RewardedAd(loadedAd: RewardedAdHandler, onRewardEarned: () -> Unit, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {})

Displays a pre-loaded Rewarded Ad using a Composable.

fun RewardedAd(activity: Any?, adUnitId: String = AdUnitId.REWARDED_DEFAULT, onRewardEarned: () -> Unit, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onLoad: () -> Unit = {})

Loads and displays a Rewarded Ad using a Composable.

Link copied to clipboard
fun RewardedInterstitialAd(loadedAd: RewardedInterstitialAdHandler, onRewardEarned: () -> Unit, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {})

Displays a pre-loaded Rewarded Interstitial Ad using a Composable.

fun RewardedInterstitialAd(activity: Any?, adUnitId: String = AdUnitId.REWARDED_INTERSTITIAL_DEFAULT, onRewardEarned: () -> Unit, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onLoad: () -> Unit = {})

Loads and displays a Rewarded Interstitial Ad using a Composable.