NativeAdViewAttributes

NativeAdViewAttributes controls layout and display elements of the NativeAdView. The attributes object must be created and fully initialized at NativeAdView creation time, changes to the attributes object after NativeAdView creation will not propagate to the view.

Hereda de:Object
Paquete:ads
Constructores
NativeAdViewAttributes()
public NativeAdViewAttributes()
NativeAdViewAttributes(JSONObject)
public NativeAdViewAttributes(JSONObject configObject)
ParámetroDescripción
configObject
Métodos de instancia
setTypeface(Typeface)
public NativeAdViewAttributes setTypeface(Typeface typeface)
ParámetroDescripción
typeface
getTypeface()
public Typeface getTypeface()
setBackgroundColor(int)
public NativeAdViewAttributes setBackgroundColor(int backgroundColor)
ParámetroDescripción
backgroundColor
getBackgroundColor()
public int getBackgroundColor()
setTitleTextColor(int)
public NativeAdViewAttributes setTitleTextColor(int titleTextColor)
ParámetroDescripción
titleTextColor
getTitleTextColor()
public int getTitleTextColor()
setDescriptionTextColor(int)
public NativeAdViewAttributes setDescriptionTextColor(int descriptionTextColor)
ParámetroDescripción
descriptionTextColor
getDescriptionTextColor()
public int getDescriptionTextColor()
setButtonColor(int)
public NativeAdViewAttributes setButtonColor(int buttonColor)
ParámetroDescripción
buttonColor
getButtonColor()
public int getButtonColor()
setButtonTextColor(int)
public NativeAdViewAttributes setButtonTextColor(int buttonTextColor)
ParámetroDescripción
buttonTextColor
getButtonTextColor()
public int getButtonTextColor()
setButtonBorderColor(int)
public NativeAdViewAttributes setButtonBorderColor(int buttonBorderColor)
ParámetroDescripción
buttonBorderColor
getButtonBorderColor()
public int getButtonBorderColor()
getTitleTextSize()
public int getTitleTextSize()
getDescriptionTextSize()
public int getDescriptionTextSize()
getAutoplay()
public boolean getAutoplay()
getAutoplayOnMobile()
public boolean getAutoplayOnMobile()
setAutoplayOnMobile(boolean)
public NativeAdViewAttributes setAutoplayOnMobile(boolean autoplay)
ParámetroDescripción
autoplay
setAutoplay(boolean)
public NativeAdViewAttributes setAutoplay(boolean autoplay)
ParámetroDescripción
autoplay