Gio.RemoteActionGroup

const Gio = imports.gi.Gio;

let remote_action_group = new Gio.RemoteActionGroup();
  

The GRemoteActionGroup interface is implemented by Gio.ActionGroup instances that either transmit action invocations to other processes or receive action invocations in the local process from other processes.

The interface has `_full` variants of the two methods on Gio.ActionGroup used to activate actions: Gio.ActionGroup.prototype.activate_action and Gio.ActionGroup.prototype.change_action_state. These variants allow a "platform data" GLib.Variant to be specified: a dictionary providing context for the action invocation (for example: timestamps, startup notification IDs, etc).

Gio.DBusActionGroup implements Gio.RemoteActionGroup. This provides a mechanism to send platform data for action invocations over D-Bus.

Additionally, Gio.DBusConnection.prototype.export_action_group will check if the exported Gio.ActionGroup implements Gio.RemoteActionGroup and use the `_full` variants of the calls if available. This provides a mechanism by which to receive platform data for action invocations that arrive by way of D-Bus.

Prerequisites

RemoteActionGroup requires Gio.ActionGroup

Known Implementations

RemoteActionGroup is implemented by DBusActionGroup