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
| Name | Syntax |
|---|---|
| InAppNotificationBannerViewStyle | constructor(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
| Name | Type | Description |
|---|---|---|
| backgroundColor | Int | open override var backgroundColor: IntThe color of the notification view's background. |
| backgroundResource | Int | open override var backgroundResource: IntThe resource ID for the notification view's background drawable. |
| buttonStyle | String | open override var buttonStyle: InAppNotificationButtonStyleThe style configuration for the notification action button. |
| closeButtonSrc | Int | var closeButtonSrc: IntThe resource ID for the close button's image source. |
| collapseButtonSrc | Int | var collapseButtonSrc: IntThe resource ID for the collapse button's image source. |
| expandButtonSrc | Int | var expandButtonSrc: IntThe resource ID for the expand button's image source. |
| textColor | Int | open override var textColor: IntThe color of the notification message text. |
| textSize | Float | open override var textSize: FloatThe size of the notification message text. |
| textTypeface | String | open override var textTypeface: TypefaceThe typeface used for the notification message text |
| titleTextColor | Int | open override var titleTextColor: IntThe color of the notification title text. |
| titleTextSize | Float | open override var titleTextSize: FloatThe size of the notification title text. |
| titleTextTypeface | String | open override var titleTextTypeface: TypefaceThe typeface used for the notification title text. |
Updated 12 months ago
