-
@Stable() public final class EloAdDisclosureThe ad disclosure, badged onto the creative mark's top-end corner — or the surface's own top-end corner when a creative's image fails to load.
A value rather than a composable slot: ad.elo.androidsdk.ui.EloAdView draws the badge itself, overlaid on the surface, so it costs the headline no width and nothing can truncate it. A publisher-supplied composable would have to be laid out beside the headline, where a long one can clip it.
Mirrors iOS
EloAdDisclosure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEloAdDisclosure.Companion
-
Constructor Summary
Constructors Constructor Description EloAdDisclosure(String text, TextUnit fontSize, FontWeight fontWeight, Color color, String testTag)
-
Method Summary
Modifier and Type Method Description final StringgetText()Disclosure copy, localized by you. final TextUnitgetFontSize()nullkeeps the SDK's own badge type: 9sp on the card's mark, 8sp on the strip's smaller one.final FontWeightgetFontWeight()nullkeeps the SDK's own badge weight, medium.final ColorgetColor()Fills the badge capsule; the copy is drawn in the card background color over it. final StringgetTestTag()Names the disclosure badge for UI tests. -
-
Method Detail
-
getText
final String getText()
Disclosure copy, localized by you. Trimmed before rendering; blank drops the badge rather than drawing an empty capsule over the creative.
-
getFontSize
final TextUnit getFontSize()
nullkeeps the SDK's own badge type: 9sp on the card's mark, 8sp on the strip's smaller one. Setting a size pins one across both.
-
getFontWeight
final FontWeight getFontWeight()
nullkeeps the SDK's own badge weight, medium.
-
getColor
final Color getColor()
Fills the badge capsule; the copy is drawn in the card background color over it.
nullfalls back to EloAdStyle.badgeColor, which restyles every surface at once.
-
getTestTag
final String getTestTag()
Names the disclosure badge for UI tests. The badge is its own node now that it no longer shares the headline's text.
-
-
-
-