IntentProvider

Package: com.salesforce.marketingcloud.pushfeature.push
Module: Push Feature Module v2.0.0
SDK: Salesforce Marketing Cloud Unified SDK 11.0.0

Overview 

1open class IntentProvider(
2    context: Context,
3    message: NotificationMessage
4)

A class that provides intent handling functionality for push notifications in the Salesforce Marketing Cloud SDK.

Constructor 

IntentProvider 

1constructor(
2    context: Context,
3    message: NotificationMessage
4)

Parameters:

  • context: Android Context object
  • message: NotificationMessage containing push notification data

Nested Types 

Companion 

1object Companion

Companion object for the IntentProvider class.

Methods 

getActionPendingIntent 

1fun getActionPendingIntent(
2    actions: Array<Action>?,
3    analyticsType: String,
4    clickedId: String,
5    title: String?
6): PendingIntent?

Creates a PendingIntent for notification actions.

Parameters:

  • actions: Array of Action objects defining notification actions (nullable)
  • analyticsType: String identifying the analytics type
  • clickedId: String identifier for the clicked element
  • title: String title for the action (nullable)

Returns:

  • PendingIntent?: A PendingIntent object or null

Description: Generates a PendingIntent for the passed actions

Platform 

  • Target: androidJvm