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

setShouldShowNotificationListener

abstract fun setShouldShowNotificationListener(@Nullable listener: ShouldShowNotificationListener?): Unit

Set a Should Show Notification Listener that will be queried as to whether or not a given notification should be displayed by the SDK. Setting the listener to null effectively clears the value within the SDK and returns message handling to its default behavior.

Parameters

listener - ShouldShowNotificationListener?: an instance of the interface