Gio.ActionGroup.prototype.activate_action

function activate_action(action_name: String, parameter: GLib.Variant): void {
    // Gjs wrapper for g_action_group_activate_action()
}
  

Activate the named action within action_group.

If the action is expecting a parameter, then the correct type of parameter must be given as parameter. If the action is expecting no parameters then parameter must be null. See Gio.ActionGroup.prototype.get_action_parameter_type.

Since 2.28

action_name

the name of the action to activate

parameter

parameters to the activation