-
public final class EloAdViewKt
-
-
Method Summary
Modifier and Type Method Description final static UnitEloAdView(List<ChatMessage> messages, Modifier modifier, List<ContextObject> contextObjects, EloAdStyle style, EloAdDisclosure sponsoredLabel, Boolean showLoadingPlaceholder, String loadingAccessibilityLabel, EloAdLayout layout, Function1<AdResult, Unit> onResult)The default Elo ad view — icon beside the headline and a one-line description that marquee-scrolls when it overflows, closed by a trailing disclosure chevron or call-to-action button, with the ad disclosure badged into the card's top-end corner. final static UnitEloAdView(AdResult result, Modifier modifier, EloAdStyle style, EloAdDisclosure sponsoredLabel, EloAdLayout layout)final static UnitEloAdView(EloAd ad, Modifier modifier, EloAdStyle style, EloAdDisclosure sponsoredLabel, EloAdLayout layout)-
-
Method Detail
-
EloAdView
@Composable() final static Unit EloAdView(List<ChatMessage> messages, Modifier modifier, List<ContextObject> contextObjects, EloAdStyle style, EloAdDisclosure sponsoredLabel, Boolean showLoadingPlaceholder, String loadingAccessibilityLabel, EloAdLayout layout, Function1<AdResult, Unit> onResult)
The default Elo ad view — icon beside the headline and a one-line description that marquee-scrolls when it overflows, closed by a trailing disclosure chevron or call-to-action button, with the ad disclosure badged into the card's top-end corner. The card shares the inline banner's visual language (corner badge, plain surface background, hairline border) and mirrors
AdMobNativeAdRenderer, so Elo-direct and AdMob fills share the same visual rhythm in a mixed feed.The whole card is the click target, with or without a call-to-action label (
EloAd.ctaText) in the trailing slot; impression and render telemetry fire from the card container either way.layout selects the native presentation (EloAdLayout.CompactHorizontal card by default, or the EloAdLayout.InlineBanner strip) — the explicit parameter is the Android idiom for iOS's
eloAdLayoutenvironment value.Renders nothing on
AdResult.NoFillorAdResult.Error. Auto-fires render and impression telemetry.
-
EloAdView
@Composable() final static Unit EloAdView(AdResult result, Modifier modifier, EloAdStyle style, EloAdDisclosure sponsoredLabel, EloAdLayout layout)
-
EloAdView
@Composable() final static Unit EloAdView(EloAd ad, Modifier modifier, EloAdStyle style, EloAdDisclosure sponsoredLabel, EloAdLayout layout)
-
-
-
-