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

NameSyntax
InAppNotificationModalViewBinderconstructor(rootView: View)

Properties

NameSyntaxDescription
callbackopen override var callback: InAppNotificationCallback?This property is used for InAppNotificationCallback
canSwipeToDismissopen override val canSwipeToDismiss: Boolean = trueThis property is used to verify whether swipe to dismiss is enabled or not
contentViewopen override val contentView: ViewThis property is used to get the content view from InApp NotificationView Binder
pushMessageopen override val pushMessage: PushMessage?This property is used to get the PushMessage
rootViewopen override val rootView: ViewThe root view of the notification layout is where the data and styles will be bound.

Functions

NameDescription
bindMessageThis method is used to bind the message to the modal view
setViewStyleThis 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:

ParametersTypeDescription
messagePushMessagecontent of PushMessage

setViewStyle

This method is used to set the InAppNotificationViewStyle to the modal view

Syntax: open override fun setViewStyle(viewStyle: InAppNotificationViewStyle?)

Parameters:

ParametersTypeDescription
viewStyleInAppNotificationViewStyleThis method is used to set the InAppNotificationViewStyle to the modal view