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

ConstructorsSyntax
InAppNotificationBannerViewBinderconstructor(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 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 var rootView: ViewThe root view of the in-app notification where the data and styles will be applied.

Functions

NameDescription
bindMessageThis method binds the message to the Banner View.
setViewStyleThis method is used to set the InApp Notification view style to InAppNotification View Binder.

bindMessage

This method binds the message to the Banner View.

Syntax: open override fun bindMessage(message: PushMessage)

Parameters:

NameDescription
messagecontent of PushMessage

setViewStyle

This method is used to set InApp Notification view style to InAppNotification View Binder.

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

Parameters:

NameDescription
viewStyleInApp Notification View Style