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


abstract fun shouldShowNotification(@NonNull message: NotificationMessage): Boolean

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.


message - NotificationMessage: the message to be displayed