InAppNotificationBannerViewBinder
Binds banner views for in-app notifications.
Implements the InAppNotificationViewBinder interface for banner in-app notifications. This class is dedicated to binding data to the banner notification's view and applying the necessary styling. It represents the binding logic specific to banner in-app notification types.
Syntax: class InAppNotificationBannerViewBinder(var rootView: View) : InAppNotificationViewBinder
Constructors
| Constructors | Syntax |
|---|---|
| InAppNotificationBannerViewBinder | constructor(rootView: View) |
Properties
| Name | Syntax | Description |
|---|---|---|
| callback | open override var callback: InAppNotificationCallback? | This property is used for InAppNotificationCallback. |
| canSwipeToDismiss | open override val canSwipeToDismiss: Boolean = true | This property is used to verify swipe to dismiss is enabled or not. |
| contentView | open override val contentView: View | This property is used to get the content view from InAppNotificationViewBinder |
| pushMessage | open override val pushMessage: PushMessage? | This property is used to get the PushMessage. |
| rootView | open override var rootView: View | The root view of the in-app notification where the data and styles will be applied. |
Functions
| Name | Description |
|---|---|
| bindMessage | This method binds the message to the Banner View. |
| setViewStyle | This method is used to set the InApp NotificationViewStyle to InAppNotificationViewBinder. |
bindMessage
This method binds the message to the Banner View.
Syntax: open override fun bindMessage(message: PushMessage)
Parameters:
| Name | Description |
|---|---|
| message | content of PushMessage |
setViewStyle
This method is used to set InAppNotificationViewStyle to InAppNotificationViewBinder.
Syntax: open override fun setViewStyle(viewStyle: InAppNotificationViewStyle?)
Parameters:
| Name | Description |
|---|---|
| viewStyle | InAppNotificationViewStyle |
Updated 8 months ago
