-
public final class AdRenderOptionsView-owned rendering options supplied by ad.elo.androidsdk.ui.EloAdView when embedding renderer-owned native views.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringsponsoredLabelprivate final IntegercardBackgroundColorprivate final IntegertitleColorprivate final IntegerdescriptionColorprivate final IntegerbadgeColorprivate final IntegerborderColorprivate final FloatborderWidthDpprivate final FloatcornerRadiusDpprivate final IntegerprimaryColorprivate final IntegeronPrimaryColorprivate final IntegerthumbnailBackgroundColorprivate final IntegercallToActionBackgroundColorprivate final IntegercallToActionForegroundColorprivate final EloAdChromechrome
-
Constructor Summary
Constructors Constructor Description AdRenderOptions(String sponsoredLabel, Integer cardBackgroundColor, Integer titleColor, Integer descriptionColor, Integer badgeColor, Integer borderColor, Float borderWidthDp, Float cornerRadiusDp, Integer primaryColor, Integer onPrimaryColor, Integer thumbnailBackgroundColor, Integer callToActionBackgroundColor, Integer callToActionForegroundColor, EloAdChrome chrome)
-
Method Summary
Modifier and Type Method Description final StringgetSponsoredLabel()final IntegergetCardBackgroundColor()final IntegergetTitleColor()final IntegergetDescriptionColor()final IntegergetBadgeColor()final IntegergetBorderColor()final FloatgetBorderWidthDp()final FloatgetCornerRadiusDp()final IntegergetPrimaryColor()final IntegergetOnPrimaryColor()final IntegergetThumbnailBackgroundColor()final IntegergetCallToActionBackgroundColor()CTA pill fill from EloAdStyle.callToActionBackground;nullmeans fall back to primaryColor (the host theme's primary).final IntegergetCallToActionForegroundColor()CTA pill text color from EloAdStyle.callToActionForeground, or black or white chosen for contrast with a custom fill;nullmeans onPrimaryColor.final EloAdChromegetChrome()EloAdStyle.chrome.-
-
Constructor Detail
-
AdRenderOptions
AdRenderOptions(String sponsoredLabel, Integer cardBackgroundColor, Integer titleColor, Integer descriptionColor, Integer badgeColor, Integer borderColor, Float borderWidthDp, Float cornerRadiusDp, Integer primaryColor, Integer onPrimaryColor, Integer thumbnailBackgroundColor, Integer callToActionBackgroundColor, Integer callToActionForegroundColor, EloAdChrome chrome)
-
-
Method Detail
-
getSponsoredLabel
final String getSponsoredLabel()
-
getCardBackgroundColor
final Integer getCardBackgroundColor()
-
getTitleColor
final Integer getTitleColor()
-
getDescriptionColor
final Integer getDescriptionColor()
-
getBadgeColor
final Integer getBadgeColor()
-
getBorderColor
final Integer getBorderColor()
-
getBorderWidthDp
final Float getBorderWidthDp()
-
getCornerRadiusDp
final Float getCornerRadiusDp()
-
getPrimaryColor
final Integer getPrimaryColor()
-
getOnPrimaryColor
final Integer getOnPrimaryColor()
-
getThumbnailBackgroundColor
final Integer getThumbnailBackgroundColor()
-
getCallToActionBackgroundColor
final Integer getCallToActionBackgroundColor()
CTA pill fill from
EloAdStyle.callToActionBackground;nullmeans fall back to primaryColor (the host theme's primary).
-
getCallToActionForegroundColor
final Integer getCallToActionForegroundColor()
CTA pill text color from
EloAdStyle.callToActionForeground, or black or white chosen for contrast with a custom fill;nullmeans onPrimaryColor.
-
getChrome
final EloAdChrome getChrome()
EloAdStyle.chrome. With EloAdChrome.Bare the renderer should also skip its corner clip and inner card padding.
-
-
-
-