InAppNotificationBannerViewStyle

Implements the style properties for a banner in-app notification view. Extends the InAppNotificationViewStyle interface to provide concrete values for the text and button styles, as well as additional properties for close, expand, and collapse buttons within the banner notification view.

Implements the style properties for a banner in-app notification view. Extends the InAppNotificationViewStyle interface to provide concrete values for the text and button styles, as well as additional properties for close, expand, and collapse buttons within the banner notification view.

Syntax: class InAppNotificationBannerViewStyle(var textColor: Int,var textSize: Float,var textTypeface: Typeface,var titleTextColor: Int,var titleTextSize: Float,var titleTextTypeface: Typeface,var backgroundResource: Int,var backgroundColor: Int,var buttonStyle: InAppNotificationButtonStyle,var closeButtonSrc: Int,var expandButtonSrc: Int,var collapseButtonSrc: Int) : InAppNotificationViewStyle

Constructors

NameSyntax
InAppNotificationBannerViewStyleconstructor(textColor: Int, textSize: Float, textTypeface: Typeface, titleTextColor: Int, titleTextSize: Float, titleTextTypeface: Typeface, backgroundResource: Int, backgroundColor: Int, buttonStyle: InAppNotificationButtonStyle, closeButtonSrc: Int, expandButtonSrc: Int, collapseButtonSrc: Int)

Properties

NameTypeDescription
backgroundColorIntopen override var backgroundColor: Int
The color of the notification view's background.
backgroundResourceIntopen override var backgroundResource: Int
The resource ID for the notification view's background drawable.
buttonStyleStringopen override var buttonStyle: InAppNotificationButtonStyle
The style configuration for the notification action button.
closeButtonSrcIntvar closeButtonSrc: Int
The resource ID for the close button's image source.
collapseButtonSrcIntvar collapseButtonSrc: Int
The resource ID for the collapse button's image source.
expandButtonSrcIntvar expandButtonSrc: Int
The resource ID for the expand button's image source.
textColorIntopen override var textColor: Int
The color of the notification message text.
textSizeFloatopen override var textSize: Float
The size of the notification message text.
textTypefaceStringopen override var textTypeface: Typeface
The typeface used for the notification message text
titleTextColorIntopen override var titleTextColor: Int
The color of the notification title text.
titleTextSizeFloatopen override var titleTextSize: Float
The size of the notification title text.
titleTextTypefaceStringopen override var titleTextTypeface: Typeface
The typeface used for the notification title text.