-
public final class EloAdViewKt
-
-
Method Summary
Modifier and Type Method Description final static UnitEloAdView(List<ChatMessage> messages, Modifier modifier, List<ContextObject> contextObjects, AdDisplayPosition displayPosition, EloAdStyle style, String sponsoredLabel, String callToActionLabel, String openLinkAccessibilityLabel, Boolean showLoadingPlaceholder, String loadingAccessibilityLabel, EloAdLayout layout, Function1<AdResult, Unit> onResult)The default Elo ad view — icon beside an "Ad • Title" attribution line and a one-line description that marquee-scrolls when it overflows, with a trailing disclosure chevron. final static UnitEloAdView(AdResult result, Modifier modifier, EloAdStyle style, String sponsoredLabel, String callToActionLabel, String openLinkAccessibilityLabel, EloAdLayout layout)final static UnitEloAdView(EloAd ad, Modifier modifier, EloAdStyle style, String sponsoredLabel, String callToActionLabel, String openLinkAccessibilityLabel, EloAdLayout layout)-
-
Method Detail
-
EloAdView
@Composable() final static Unit EloAdView(List<ChatMessage> messages, Modifier modifier, List<ContextObject> contextObjects, AdDisplayPosition displayPosition, EloAdStyle style, String sponsoredLabel, String callToActionLabel, String openLinkAccessibilityLabel, Boolean showLoadingPlaceholder, String loadingAccessibilityLabel, EloAdLayout layout, Function1<AdResult, Unit> onResult)
The default Elo ad view — icon beside an "Ad • Title" attribution line and a one-line description that marquee-scrolls when it overflows, with a trailing disclosure chevron. The whole card is the click target; Elo-rendered creatives draw no CTA button (since 0.1.8, matching iOS 0.1.6). The card shares the inline banner's visual language (attribution line, plain surface background, hairline border, chevron) and mirrors
AdMobNativeAdRenderer, so Elo-direct and AdMob fills share the same visual rhythm in a mixed feed.callToActionLabel only affects renderer-backed mediation fills — it is forwarded as AdRenderOptions.callToActionLabel and never drawn on Elo-rendered cards.
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, String sponsoredLabel, String callToActionLabel, String openLinkAccessibilityLabel, EloAdLayout layout)
-
EloAdView
@Composable() final static Unit EloAdView(EloAd ad, Modifier modifier, EloAdStyle style, String sponsoredLabel, String callToActionLabel, String openLinkAccessibilityLabel, EloAdLayout layout)
-
-
-
-