-
public final class EloAdViewKt
-
-
Method Summary
Modifier and Type Method Description final static UnitEloAdView(List<ChatMessage> messages, Modifier modifier, List<ContextObject> contextObjects, Dp maxHeight, Dp maxWidth, EloAdStyle style, EloAdDisclosure sponsoredLabel, Boolean showLoadingPlaceholder, String loadingAccessibilityLabel, Function1<AdResult, Unit> onResult)Loads and renders an ad for the given chat context. final static UnitEloAdView(AdResult result, Modifier modifier, EloAdStyle style, EloAdDisclosure sponsoredLabel)Renders a loaded result in the format the server chose; nothing otherwise. final static UnitEloAdView(EloAd ad, Modifier modifier, EloAdStyle style, EloAdDisclosure sponsoredLabel)Renders ad in the format the server chose. -
-
Method Detail
-
EloAdView
@Composable() final static Unit EloAdView(List<ChatMessage> messages, Modifier modifier, List<ContextObject> contextObjects, Dp maxHeight, Dp maxWidth, EloAdStyle style, EloAdDisclosure sponsoredLabel, Boolean showLoadingPlaceholder, String loadingAccessibilityLabel, Function1<AdResult, Unit> onResult)
Loads and renders an ad for the given chat context.
maxHeight and maxWidth describe the space the slot can give the ad;
nullmeans unbounded on that axis. The server picks a format that fits (the two-line strip or the chat card) and the view renders it, with the publisher's render settings for that format. While the request is in flight the view shows a skeleton of the format maxHeight points to: the strip below 192dp, the card otherwise.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)
Renders a loaded result in the format the server chose; nothing otherwise.
-
EloAdView
@Composable() final static Unit EloAdView(EloAd ad, Modifier modifier, EloAdStyle style, EloAdDisclosure sponsoredLabel)
Renders ad in the format the server chose.
-
-
-
-