Marketing Cloud SDK / com.salesforce.marketingcloud.notifications / NotificationManager / ShouldShowNotificationListener

ShouldShowNotificationListener

interface ShouldShowNotificationListener

Functions

shouldShowNotification

At the time that a notification would be presented by the SDK it will check for an implementation of this interface and honor the boolean return value to determine if the message should be displayed or not.

abstract fun shouldShowNotification(message: NotificationMessage): Boolean