Class BannerAppearance

  • All Implemented Interfaces:
    android.os.Parcelable

    public final class BannerAppearance
    extends java.lang.Object
    implements android.os.Parcelable
    BannerAppearance provides interfaces for Banner customization. BannerAppearance are created using BannerAppearance.Builder.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BannerAppearance.Builder
      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<BannerAppearance> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • 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.
        Returns:
        background color of the Banner.
      • getBorderColor

        public int getBorderColor()
        Returns the border color specified for Banner.
        Returns:
        border color of the Banner.
      • getBorderWidth

        public float getBorderWidth()
        Returns the border width specified for Banner.
        Returns:
        border width of the Banner.
      • getContentPadding

        @Nullable
        public HorizontalOffset getContentPadding()
        Returns the horizontal space between banner edge and content specified for Banner.
        Returns:
        horizontal space between banner edge and content.
      • getImageMargins

        @Nullable
        public HorizontalOffset getImageMargins()
        Returns the horizontal image margins specified for Banner.
        Returns:
        horizontal image margins.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable