-
@Stable() public final class EloAdStyleOptional styling overrides for the Compose ad views.
Only non-null fields are applied — every other surface uses Material 3 theme defaults. Mirrors iOS
EloAdStyle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEloAdStyle.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ColorcardBackgroundprivate final ColortitleColorprivate final ColordescriptionColorprivate final ColorbadgeColorprivate final ColorcallToActionBackgroundprivate final ColorcallToActionForegroundprivate final ColorborderColorprivate final DpborderWidthprivate final DpcornerRadiusprivate final EloAdDescriptionOverflowdescriptionOverflow
-
Constructor Summary
Constructors Constructor Description EloAdStyle(Color cardBackground, Color titleColor, Color descriptionColor, Color badgeColor, Color callToActionBackground, Color callToActionForeground, Color borderColor, Dp borderWidth, Dp cornerRadius, EloAdDescriptionOverflow descriptionOverflow)
-
Method Summary
Modifier and Type Method Description final ColorgetCardBackground()final ColorgetTitleColor()final ColorgetDescriptionColor()final ColorgetBadgeColor()final ColorgetCallToActionBackground()CTA pill fill, used by the Elo-rendered call-to-action button on creatives that supply a label ( EloAd.ctaText) and forwarded to renderer-backed fills that draw their own CTA (e.g.final ColorgetCallToActionForeground()CTA pill text color; see callToActionBackground. final ColorgetBorderColor()final DpgetBorderWidth()final DpgetCornerRadius()final EloAdDescriptionOverflowgetDescriptionOverflow()How the one-line creative description handles copy wider than the surface. -
-
Constructor Detail
-
EloAdStyle
EloAdStyle(Color cardBackground, Color titleColor, Color descriptionColor, Color badgeColor, Color callToActionBackground, Color callToActionForeground, Color borderColor, Dp borderWidth, Dp cornerRadius, EloAdDescriptionOverflow descriptionOverflow)
-
-
Method Detail
-
getCardBackground
final Color getCardBackground()
-
getTitleColor
final Color getTitleColor()
-
getDescriptionColor
final Color getDescriptionColor()
-
getBadgeColor
final Color getBadgeColor()
-
getCallToActionBackground
final Color getCallToActionBackground()
CTA pill fill, used by the Elo-rendered call-to-action button on creatives that supply a label (
EloAd.ctaText) and forwarded to renderer-backed fills that draw their own CTA (e.g. AdMob native). Default to the theme's primary / onPrimary. Mirror iOSEloAdStyle.callToActionBackground/-Foreground.
-
getCallToActionForeground
final Color getCallToActionForeground()
CTA pill text color; see callToActionBackground.
-
getBorderColor
final Color getBorderColor()
-
getBorderWidth
final Dp getBorderWidth()
-
getCornerRadius
final Dp getCornerRadius()
-
getDescriptionOverflow
final EloAdDescriptionOverflow getDescriptionOverflow()
How the one-line creative description handles copy wider than the surface.
nulluses EloAdDescriptionOverflow.Marquee. Mirrors iOSEloAdStyle.descriptionOverflow.
-
-
-
-