NotificationManager
com.salesforce.marketingcloud.pushfeature.notifications
An abstract class for managing push notifications in the Salesforce Marketing Cloud SDK.
Module: Push Feature Module v2.0.0
SDK: Salesforce Marketing Cloud Unified SDK 11.0.0
Platform: androidJvm
Default constructor with no parameters.
Returns whether notifications are currently enabled.
Returns: Boolean - true if notifications are enabled, false otherwise
Enables push notifications.
Disables push notifications.
Displays a notification message.
Parameters:
message:NotificationMessage- The NotificationMessage to display
Sets a listener to determine if a notification should be displayed.
Parameters:
listener:NotificationManager.ShouldShowNotificationListener?- The ShouldShowNotificationListener instance (nullable)
Registers a listener for notification display events.
Parameters:
listener:NotificationManager.NotificationMessageDisplayedListener- The NotificationMessageDisplayedListener to register
Removes a previously registered listener.
Parameters:
listener:NotificationManager.NotificationMessageDisplayedListener- The NotificationMessageDisplayedListener to unregister
Static companion object.
Provides custom notification building. Used in NotificationCustomizationOptions during SDK initialization via PushFeatureConfig.notificationCustomizationOptions.
Provides notification channel IDs. Used in NotificationCustomizationOptions.
Provides intents for notification launches.
Listens for notification display events.
Queries whether a notification should be shown.