get Support Actions
open fun getSupportActions(@NonNull context: Context, @NonNull batchActions: List<BatchNotificationAction>, @Nullable pushPayload: BatchPushPayload, @Nullable notificationId: Integer): List<NotificationCompat.Action>
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
batch Actions
List of BatchNotificationAction instances to convert
push Payload
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.
notification Id
The Id of the notification these actions will be attached to. Required for shouldDismissNotification to work.