The <GRemoteActionGroup> interface is
implemented by <GActionGroup> 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
<GActionGroup> used to activate actions:
action-group:activate-action
and action-group:change-action-state. These variants
allow a ‘platform data’ <GVariant> to be
specified: a dictionary providing context for the action invocation (for
example: timestamps, startup notification IDs, etc).
<GDBusActionGroup> implements
<GRemoteActionGroup>. This provides a
mechanism to send platform data for action invocations over D-Bus.
Additionally, dbus-connection:export-action-group will check if
the exported <GActionGroup> implements
<GRemoteActionGroup> 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.
Activates the remote action.
This is the same as action-group:activate-action except that it allows
for provision of "platform data" to be sent along with the activation
request. This typically contains details such as the user interaction
timestamp or startup notification information.
platform-data must be non-#f and must have the type
G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
Passed: a <GRemoteActionGroup>.
Passed: a string.
the name of the action to activate
Passed: a <GVariant>, or #f.
the optional parameter to the activation
Passed: a <GVariant>.
the platform data to send
Changes the state of a remote action.
This is the same as action-group:change-action-state except that it
allows for provision of "platform data" to be sent along with the state
change request. This typically contains details such as the user
interaction timestamp or startup notification information.
platform-data must be non-#f and must have the type
G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
Passed: a <GRemoteActionGroup>.
Passed: a string.
the name of the action to change the state of
Passed: a <GVariant>.
the new requested value for the state
Passed: a <GVariant>.
the platform data to send
Activates the remote action.
This is the same as action-group:activate-action except that it allows
for provision of "platform data" to be sent along with the activation
request. This typically contains details such as the user interaction
timestamp or startup notification information.
platform-data must be non-#f and must have the type
G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
To override it in a new class, give register-type #:vfuncs
`((activate-action-full . ,procedure)). The procedure is called as
(procedure self action-name parameter platform-data).
Passed: the class whose implementation to call: a class that implements
<GRemoteActionGroup>, or its GType
number.
Passed: a <GRemoteActionGroup>.
Passed: a string.
the name of the action to activate
Passed: a <GVariant>, or #f.
the optional parameter to the activation
Passed: a <GVariant>.
the platform data to send
Changes the state of a remote action.
This is the same as action-group:change-action-state except that it
allows for provision of "platform data" to be sent along with the state
change request. This typically contains details such as the user
interaction timestamp or startup notification information.
platform-data must be non-#f and must have the type
G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
To override it in a new class, give register-type #:vfuncs
`((change-action-state-full . ,procedure)). The procedure is called
as (procedure self action-name value platform-data).
Passed: the class whose implementation to call: a class that implements
<GRemoteActionGroup>, or its GType
number.
Passed: a <GRemoteActionGroup>.
Passed: a string.
the name of the action to change the state of
Passed: a <GVariant>.
the new requested value for the state
Passed: a <GVariant>.
the platform data to send