-
public class BatchNotificationActionRepresents a Notification Action button
-
-
Field Summary
Fields Modifier and Type Field Description public Stringlabelpublic StringdrawableNamepublic StringactionIdentifierpublic JSONObjectactionArgumentspublic booleanhasUserInterfacepublic booleanshouldDismissNotification
-
Method Summary
Modifier and Type Method Description static List<NotificationCompat.Action>getSupportActions(@NonNull() Context context, @NonNull() List<BatchNotificationAction> batchActions, @Nullable() BatchPushPayload pushPayload, @Nullable() Integer notificationId)Converts BatchNotificationAction instances to NotificationCompat.Action, allowing you to add actions to a Notification the same waythe SDK internally does it, taking care of all the boilerplate. -
-
Method Detail
-
getSupportActions
@NonNull() static List<NotificationCompat.Action> getSupportActions(@NonNull() Context context, @NonNull() List<BatchNotificationAction> batchActions, @Nullable() BatchPushPayload pushPayload, @Nullable() Integer notificationId)
Converts BatchNotificationAction instances to NotificationCompat.Action, allowing you to add actions to a Notification the same waythe SDK internally does it, taking care of all the boilerplate.
- Parameters:
context- Your application's contextbatchActions- List of BatchNotificationAction instances to convertpushPayload- The Batch push payload associated with these actions, if any.notificationId- The Id of the notification these actions will be attached to.
-
-
-
-