add Action
Adds an Action to an action category.
Calling addAction()
more than once with the same category will add each Action to that category, allowing many actions to be attached to notification of that category.
Return
The same NotificationConfig.
Parameters
identifier of the action category
icon to show for this action
the title of the action
the Intent to fire when users trigger this action
May be FLAG_ONE_SHOT, FLAG_NO_CREATE, FLAG_CANCEL_CURRENT, FLAG_UPDATE_CURRENT, FLAG_IMMUTABLE or any of the flags as supported by Intent.fillIn() to control which unspecified parts of the intent that can be supplied when the actual send happens. Used for building the Action's PendingIntent.
Adds an Action to an action category.
Calling addAction()
more than once with the same category will add each Action to that category, allowing many actions to be attached to notification of that category.
Return
The same NotificationConfig.
Parameters
identifier of the action category
icon to show for this action
the title of the action
the Intent to fire when users trigger this action
a RemoteInput to add to the action
May be FLAG_ONE_SHOT, FLAG_NO_CREATE, FLAG_CANCEL_CURRENT, FLAG_UPDATE_CURRENT, FLAG_IMMUTABLE or any of the flags as supported by Intent.fillIn() to control which unspecified parts of the intent that can be supplied when the actual send happens. Used for building the Action's PendingIntent.