addAction
Adds a button to the notification
Author
Arnau Mora
Since
20210313
Return
The Builder instance
Parameters
button
The button to add
fun addAction(@DrawableRes icon: Int, @StringRes text: Int, listener: Notification.Builder.() -> Unit): Notification.Builder
Adds a button to the notification.
Author
Arnau Mora
Since
20210909
Return
The builder instance.
Parameters
icon
The icon to display in the button.
text
The text to display in the button.
listener
What to call when the button is pressed.