Package-level declarations
Types
The one place an ad that failed to load is written down.
Why an ad slot has nothing to show.
Non-fatal marker for an ad request that was never made.
A frame that always measures widthToHeightRatio, whatever its child reports.
Default implementation of NativeAdViewFactory providing the toolkit's standard presentations.
A Compose Shape, flattened to the path an ad's icon badge is filled with.
Keeps the native ads of one screen alive while their slots scroll in and out of view.
How an ad's call to action is drawn.
The single seam between rememberNativeAd and the Google Mobile Ads SDK.
An ARGB snapshot of the Compose theme, for the Android views that render an ad.
The shape a native ad takes on screen.
What a slot has: an ad, or the reason it has none.
Per-screen look for a native ad.
Interface for creating the view hierarchy for different native ad presentations.
Strong references to the views a native ad binds to, so binding never needs findViewById.
Properties
The NativeAdLoaderClient used by every NativeAdSlot below this point in the composition.
Aspect ratio of media in the Featured presentation.
Functions
A Composable function that displays a banner ad from Google AdMob.
What an empty ad slot looks like on a debug build.
Native ad strip for a bottom app bar, using NativeAdSlot without a card container.
The call to action.
The ad's headline, bold by default.
Icon container. The icon itself is the registered iconView; the frame carries the rounded background so the icon can keep its own padding without clipping the tint.
Captures the current MaterialTheme colours as a NativeAdPalette.
The single entry point for rendering a native ad anywhere in the toolkit.
Media-led NativeAdSlot for empty and error states.
Reads the ads preference provided by LocalAdsEnabled. Reuses the theme's observation and host-configured default instead of creating a collector for each ad slot.
Loads a NativeAd for adUnitId and keeps it alive for as long as it is composed.
Remembers a NativeAdCache for the current screen and destroys its ads when the screen leaves.
rememberNativeAd with the reason an empty slot is empty.
Sets the app's typeface (Google Sans Flex) at weight, so an ad's text matches the Compose text around it instead of falling back to the system font.