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

NotificationLaunchIntentProvider

interface NotificationLaunchIntentProvider

Provide your NotificationLaunchIntentProvider in the NotificationCustomizationOptions when initializing the SDK via com.salesforce.marketingcloud.MarketingCloudConfig.Builder#setNotificationCustomizationOptions(NotificationCustomizationOptions).

Functions

getNotificationPendingIntent

Provide a PendingIntent for the desired destination when a notification is opened. This value will be set as the 'content intent' on the notification.

abstract fun getNotificationPendingIntent(context: Context, notificationMessage: NotificationMessage): PendingIntent?