Package 

Class EloAdDisclosure


  • @Stable() 
    public final class EloAdDisclosure
    
                        

    The 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.

    • Constructor Summary

      Constructors 
      Constructor Description
      EloAdDisclosure(String text, TextUnit fontSize, FontWeight fontWeight, Color color, String testTag)
    • Method Summary

      Modifier and Type Method Description
      final String getText() Disclosure copy, localized by you.
      final TextUnit getFontSize() null keeps the SDK's own badge type: 9sp on the card's mark, 8sp on the strip's smaller one.
      final FontWeight getFontWeight() null keeps the SDK's own badge weight, medium.
      final Color getColor() Fills the badge capsule; the copy is drawn in the card background color over it.
      final String getTestTag() Names the disclosure badge for UI tests.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EloAdDisclosure

        EloAdDisclosure(String text, TextUnit fontSize, FontWeight fontWeight, Color color, String testTag)
    • 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()

        null keeps 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()

        null keeps 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. null falls 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.