Package 

Class EloAdViewKt

    • 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; null means 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.NoFill or AdResult.Error. Auto-fires render and impression telemetry.