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

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.

Parameters

message - NotificationMessage: the message to be displayed