Gio.Notification.prototype.add_button_with_target

function add_button_with_target(label: String, action: String, target: GLib.Variant): void {
    // Gjs wrapper for g_notification_add_button_with_target_value()
}
  

Adds a button to notification that activates action when clicked. action must be an application-wide action (it must start with "app.").

If target is non-null, action will be activated with target as its parameter.

Since 2.40

label

label of the button

action

an action name

target

a GVariant to use as action's parameter, or null