InAppNotificationModalViewBinder
Binds modal views for in-app notifications.
Implements the InAppNotificationViewBinder for modal in-app notifications. This class is responsible for binding the data to the modal notification's view and applying the necessary styles. It represents the binding logic specific to modal in-app notification types.
Syntax: class InAppNotificationModalViewBinder(val rootView: View) : InAppNotificationViewBinder
Constructors
Name | Syntax |
---|---|
InAppNotificationModalViewBinder | 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 whether swipe to dismiss is enabled or not |
contentView | open override val contentView: View | This property is used to get the content view from InApp NotificationView Binder |
pushMessage | open override val pushMessage: PushMessage? | This property is used to get the PushMessage |
rootView | open override val rootView: View | The root view of the notification layout is where the data and styles will be bound. |
Functions
Name | Description |
---|---|
bindMessage | This method is used to bind the message to the modal view |
setViewStyle | This method is used to set the InAppNotificationViewStyle to the modal view |
bindMessage
This method is used to bind the message to the modal view.
Syntax: open override fun bindMessage(message: PushMessage)
Parameters:
Parameters | Type | Description |
---|---|---|
message | PushMessage | content of PushMessage |
setViewStyle
This method is used to set the InAppNotificationViewStyle to the modal view
Syntax: open override fun setViewStyle(viewStyle: InAppNotificationViewStyle?)
Parameters:
Parameters | Type | Description |
---|---|---|
viewStyle | InAppNotificationViewStyle | This method is used to set the InAppNotificationViewStyle to the modal view |
Updated about 1 month ago