createMarkReadAction
Creates a "Mark as Read" notification action.
When triggered, this action marks the specified message as read in the channel.
Return
A NotificationCompat.Action configured for marking messages as read.
Parameters
The Context used to access resources and create the pending intent.
The unique identifier for the notification. Used for the pending intent request code.
The Channel containing the message to mark as read.
The Message to mark as read when the action is triggered.
The drawable resource ID for the action icon. Defaults to android.R.drawable.ic_menu_view.
The label text displayed on the action button. Defaults to the localized "Mark as read" string.
The PendingIntent to execute when the action is triggered. Defaults to a broadcast intent which will mark the channel as read.