BrazeNotificationActionUtils

Functions

Link copied to clipboard
fun addNotificationAction(notificationBuilder: NotificationCompat.Builder, payload: BrazeNotificationPayload, actionButton: BrazeNotificationPayload.ActionButton)

Add the notification action at a specified index to the notification builder.

Link copied to clipboard
fun addNotificationActions(notificationBuilder: NotificationCompat.Builder, payload: BrazeNotificationPayload)

Add notification actions to the provided notification builder.

Link copied to clipboard

Handles clicks on notification action buttons in the notification center. Called by FCM/ADM receiver when an Braze notification action button is clicked. The FCM/ADM receiver passes on the intent from the notification action button click intent.

Link copied to clipboard
fun logNotificationActionClicked(context: Context, intent: Intent, actionType: String?)

Log an action button clicked event.