public static interface

NotificationManager.NotificationLaunchIntentProvider

com.salesforce.marketingcloud.notifications.NotificationManager.NotificationLaunchIntentProvider

Summary

Public Methods
abstract PendingIntent getNotificationPendingIntent(Context context, NotificationMessage notificationMessage)
Provide a PendingIntent for the desired destination when a notification is opened.

Public Methods

public abstract PendingIntent getNotificationPendingIntent (Context context, NotificationMessage notificationMessage)

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

The SDK will wrap the returned PendingIntent such that it can log analytics for when the notification is clicked.

Parameters
context The context to use when creating the PendingIntent
notificationMessage The message for the PendingIntent
Returns
  • The PendingIntent for the notificationMessage.
See Also
  • android.support.v4.app.NotificationCompat.Builder#setContentIntent(PendingIntent)