Package-level declarations

Functions

Link copied to clipboard
actual fun BannerAdView(placement: AdPlacement, modifier: Modifier, widthDp: Int?, onEvent: (AdEvent) -> Unit)

Composable that renders a banner ad for the given placement. Self-loads when the AdManager is AdManagerStatus.Ready (unless the placement uses BannerRefreshPolicy.Manual). Sizes adaptive banners to the measured container width.

expect fun BannerAdView(placement: AdPlacement, modifier: Modifier = Modifier, widthDp: Int? = null, onEvent: (AdEvent) -> Unit = {})

Composable that renders a banner ad for the given placement. Self-loads when the AdManager is AdManagerStatus.Ready (unless the placement uses BannerRefreshPolicy.Manual). Sizes adaptive banners to the measured container width.

actual fun BannerAdView(placement: AdPlacement, modifier: Modifier, widthDp: Int?, onEvent: (AdEvent) -> Unit)

Composable that renders a banner ad for the given placement. Self-loads when the AdManager is AdManagerStatus.Ready (unless the placement uses BannerRefreshPolicy.Manual). Sizes adaptive banners to the measured container width.

Link copied to clipboard
actual fun NativeAdView(placement: AdPlacement, itemKey: String, layout: AdLayout, modifier: Modifier, onEvent: (AdEvent) -> Unit)

Composable that renders a native ad from the pool for the given placement. Acquires a NativeAdToken from the pool and releases it on dispose automatically. Each itemKey gets its own distinct ad, enabling stable list reuse.

expect fun NativeAdView(placement: AdPlacement, itemKey: String, layout: AdLayout = AdTemplates.mediaCard, modifier: Modifier = Modifier, onEvent: (AdEvent) -> Unit = {})

Composable that renders a native ad from the pool for the given placement. Acquires a NativeAdToken from the pool and releases it on dispose automatically. Each itemKey gets its own distinct ad, enabling stable list reuse.

actual fun NativeAdView(placement: AdPlacement, itemKey: String, layout: AdLayout, modifier: Modifier, onEvent: (AdEvent) -> Unit)

Composable that renders a native ad from the pool for the given placement. Acquires a NativeAdToken from the pool and releases it on dispose automatically. Each itemKey gets its own distinct ad, enabling stable list reuse.