InAppNotificationCallback

This interface represents call back methods implemented in InAppNotificationViewBinder to listen for InAppNotification displayed events, action click events, and dismiss events.

This interface represents call back methods implemented in InAppNotificationViewBinder to listen for InAppNotification displayed events, action click events, and dismiss events

Syntax: interface InAppNotificationCallback

Functions

NameDescription
onNotificationClickedThis method will be invoked when InApp Notification action clicked
onNotificationDismissedThis method will be invoked when InApp Notification dismissed
onNotificationDisplayedThis method will be invoked when InApp Notification displayed

onNotificationClicked

This method will be invoked when InApp Notification action clicked.

Syntax: abstract fun onNotificationClicked(message: PushMessage?, action: String?, value: String?)

Parameters:

ParametersTypeDescription
messagePushMessageThe received Push Message.
actionStringaction to perform when the interaction takes place
valueStringvalue is used to complete certain actions.

onNotificationDismissed

This method will be invoked when InApp Notification dismissed

Syntax: abstract fun onNotificationDismissed(message: PushMessage?)

Parameters:

ParametersTypeDescription
messagePushMessageThe received Push Message.

onNotificationDisplayed

This method will be invoked when InApp Notification displayed.

Syntax: abstract fun onNotificationDisplayed(message: PushMessage?)

Parameters:

ParametersTypeDescription
messagePushMessageThe received Push Message.