Class BannerAppearance
- java.lang.Object
-
- com.yandex.mobile.ads.nativeads.template.appearance.BannerAppearance
-
- All Implemented Interfaces:
android.os.Parcelable,com.monetization.ads.nativeads.template.appearance.NativeTemplateBannerAppearance
public final class BannerAppearance extends java.lang.Object implements android.os.Parcelable, com.monetization.ads.nativeads.template.appearance.NativeTemplateBannerAppearanceBannerAppearance provides interfaces for Banner customization. BannerAppearance are created usingBannerAppearance.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBannerAppearance.BuilderBuilds aBannerAppearance.
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BannerAppearance>CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protectedBannerAppearance(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(java.lang.Object o)intgetBackgroundColor()Returns the background color specified for Banner.intgetBorderColor()Returns the border color specified for Banner.floatgetBorderWidth()Returns the border width specified for Banner.HorizontalOffsetgetContentPadding()Returns the horizontal space between banner edge and content specified for Banner.HorizontalOffsetgetImageMargins()Returns the horizontal image margins specified for Banner.inthashCode()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BannerAppearance> CREATOR
-
-
Method Detail
-
getBackgroundColor
public int getBackgroundColor()
Returns the background color specified for Banner.- Specified by:
getBackgroundColorin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateBannerAppearance- Returns:
- background color of the Banner.
-
getBorderColor
public int getBorderColor()
Returns the border color specified for Banner.- Specified by:
getBorderColorin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateBannerAppearance- Returns:
- border color of the Banner.
-
getBorderWidth
public float getBorderWidth()
Returns the border width specified for Banner.- Specified by:
getBorderWidthin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateBannerAppearance- Returns:
- border width of the Banner.
-
getContentPadding
@Nullable public HorizontalOffset getContentPadding()
Returns the horizontal space between banner edge and content specified for Banner.- Specified by:
getContentPaddingin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateBannerAppearance- Returns:
- horizontal space between banner edge and content.
-
getImageMargins
@Nullable public HorizontalOffset getImageMargins()
Returns the horizontal image margins specified for Banner.- Specified by:
getImageMarginsin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateBannerAppearance- Returns:
- horizontal image margins.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-