-
public final class AdRenderOptionsView-owned rendering options supplied by ad.elo.androidsdk.ui.EloAdView when embedding adapter-owned native views.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringctaLabelprivate final StringsponsoredLabelprivate final StringcallToActionLabelprivate final IntegercardBackgroundColorprivate final IntegertitleColorprivate final IntegerdescriptionColorprivate final IntegerbadgeColorprivate final IntegerborderColorprivate final FloatborderWidthDpprivate final FloatcornerRadiusDpprivate final IntegerprimaryColorprivate final IntegeronPrimaryColorprivate final IntegerthumbnailBackgroundColorprivate final EloAdLayoutlayoutprivate final IntegercallToActionBackgroundColorprivate final IntegercallToActionForegroundColor
-
Constructor Summary
Constructors Constructor Description AdRenderOptions(String sponsoredLabel, String callToActionLabel, Integer cardBackgroundColor, Integer titleColor, Integer descriptionColor, Integer badgeColor, Integer borderColor, Float borderWidthDp, Float cornerRadiusDp, Integer primaryColor, Integer onPrimaryColor, Integer thumbnailBackgroundColor, EloAdLayout layout, Integer callToActionBackgroundColor, Integer callToActionForegroundColor)
-
Method Summary
Modifier and Type Method Description final StringgetCtaLabel()final StringgetSponsoredLabel()final StringgetCallToActionLabel()Call-to-action label supplied by the host view. final IntegergetCardBackgroundColor()final IntegergetTitleColor()final IntegergetDescriptionColor()final IntegergetBadgeColor()final IntegergetBorderColor()final FloatgetBorderWidthDp()final FloatgetCornerRadiusDp()final IntegergetPrimaryColor()final IntegergetOnPrimaryColor()final IntegergetThumbnailBackgroundColor()final EloAdLayoutgetLayout()Native layout selected by the host view. 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;nullmeans fall back to onPrimaryColor.-
-
Constructor Detail
-
AdRenderOptions
AdRenderOptions(String sponsoredLabel, String callToActionLabel, Integer cardBackgroundColor, Integer titleColor, Integer descriptionColor, Integer badgeColor, Integer borderColor, Float borderWidthDp, Float cornerRadiusDp, Integer primaryColor, Integer onPrimaryColor, Integer thumbnailBackgroundColor, EloAdLayout layout, Integer callToActionBackgroundColor, Integer callToActionForegroundColor)
-
-
Method Detail
-
getCtaLabel
final String getCtaLabel()
-
getSponsoredLabel
final String getSponsoredLabel()
-
getCallToActionLabel
final String getCallToActionLabel()
Call-to-action label supplied by the host view. Elo-rendered creatives draw no CTA (the whole card is the click target since 0.1.8), so this only reaches renderer-backed fills. Renderers whose network supplies its own CTA text (AdMob's
nativeAd.callToAction) may ignore it or use it as a fallback.nullwhen the host passedcallToActionLabel = null.
-
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()
-
getLayout
final EloAdLayout getLayout()
Native layout selected by the host view. Renderers without a dedicated treatment for a layout should fall back to their EloAdLayout.CompactHorizontal presentation. Mirrors iOS
EloAdRenderConfiguration.layout.
-
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;nullmeans fall back to onPrimaryColor.
-
-
-
-