public class BrazeNotificationActionUtils
extends java.lang.Object
| Constructor and Description |
|---|
BrazeNotificationActionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addNotificationAction(android.content.Context context,
NotificationCompat.Builder notificationBuilder,
android.os.Bundle notificationExtras,
int actionIndex)
Deprecated.
Please use
#addNotificationAction(BrazeNotificationPayload.ActionButton) |
static void |
addNotificationAction(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload,
BrazeNotificationPayload.ActionButton actionButton)
Add the notification action at the specified index to the notification builder.
|
static void |
addNotificationActions(android.content.Context context,
NotificationCompat.Builder notificationBuilder,
android.os.Bundle notificationExtras)
Deprecated.
|
static void |
addNotificationActions(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload)
Add notification actions to the provided notification builder.
|
static void |
handleNotificationActionClicked(android.content.Context context,
android.content.Intent intent)
Handles clicks on notification action buttons in the notification center.
|
static void |
logNotificationActionClicked(android.content.Context context,
android.content.Intent intent,
java.lang.String actionType)
Log an action button clicked event.
|
@Deprecated
public static void addNotificationActions(android.content.Context context,
NotificationCompat.Builder notificationBuilder,
android.os.Bundle notificationExtras)
addNotificationActions(NotificationCompat.Builder, BrazeNotificationPayload)public static void addNotificationActions(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload)
public static void handleNotificationActionClicked(android.content.Context context,
android.content.Intent intent)
intent - the action button click intent@Deprecated
public static void addNotificationAction(android.content.Context context,
NotificationCompat.Builder notificationBuilder,
android.os.Bundle notificationExtras,
int actionIndex)
#addNotificationAction(BrazeNotificationPayload.ActionButton)public static void addNotificationAction(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload,
BrazeNotificationPayload.ActionButton actionButton)
public static void logNotificationActionClicked(android.content.Context context,
android.content.Intent intent,
java.lang.String actionType)
intent - the action button click intent