Notify.Notification.prototype.add_action
function add_action(action: String, label: String, callback: Notify.ActionCallback): void {
// Gjs wrapper for notify_notification_add_action()
}
Adds an action to a notification. When the action is invoked, the specified callback function will be called, along with the value passed to user_data.
- action
The action ID.
- label
The human-readable action label.
- callback
The action's callback function.