getSupportActions

Converts BatchNotificationAction instances to NotificationCompat.Action, allowing you to add actions to a Notification the same way the SDK internally does it, taking care of all the boilerplate.

Return

A list of NotificationCompat.Action instances matching the provided BatchNotificationAction, if they've been successfully converted

Parameters

context

Your application's context

batchActions

List of BatchNotificationAction instances to convert

pushPayload

The Batch push payload associated with these actions, if any. If not set, the UserActionSource will not be set when your custom UserActionRunnable is called. This parameter might be required for some internal actions.

notificationId

The Id of the notification these actions will be attached to. Required for shouldDismissNotification to work.