Interface RemoteActionGroup
- All Superinterfaces:
ActionGroup
,Proxy
- All Known Implementing Classes:
DBusActionGroup
,RemoteActionGroup.RemoteActionGroupImpl
GRemoteActionGroup
interface is implemented by 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 ActionGroup
used to activate actions:
ActionGroup.activateAction(java.lang.String, org.gnome.glib.Variant)
and
ActionGroup.changeActionState(java.lang.String, org.gnome.glib.Variant)
. 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).
DBusActionGroup
implements GRemoteActionGroup
. This provides a
mechanism to send platform data for action invocations over D-Bus.
Additionally, DBusConnection.exportActionGroup(java.lang.String, org.gnome.gio.ActionGroup)
will check if
the exported ActionGroup
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The RemoteActionGroupImpl type represents a native instance of the RemoteActionGroup interface.static class
The virtual function table forGRemoteActionGroup
.Nested classes/interfaces inherited from interface org.gnome.gio.ActionGroup
ActionGroup.ActionAddedCallback, ActionGroup.ActionEnabledChangedCallback, ActionGroup.ActionGroupImpl, ActionGroup.ActionGroupInterface, ActionGroup.ActionRemovedCallback, ActionGroup.ActionStateChangedCallback
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
activateActionFull
(String actionName, @Nullable Variant parameter, Variant platformData) Activates the remote action.default void
changeActionStateFull
(String actionName, Variant value, Variant platformData) Changes the state of a remote action.static Type
getType()
Get the GType of the RemoteActionGroup classMethods inherited from interface org.gnome.gio.ActionGroup
actionAdded, actionEnabledChanged, actionRemoved, actionStateChanged, activateAction, changeActionState, emitActionAdded, emitActionEnabledChanged, emitActionRemoved, emitActionStateChanged, getActionEnabled, getActionParameterType, getActionState, getActionStateHint, getActionStateType, hasAction, listActions, onActionAdded, onActionEnabledChanged, onActionRemoved, onActionStateChanged, queryAction
-
Method Details
-
getType
-
activateActionFull
default void activateActionFull(String actionName, @Nullable @Nullable Variant parameter, Variant platformData) Activates the remote action.This is the same as g_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.
platformData
must be non-null
and must have the typeG_VARIANT_TYPE_VARDICT
. If it is floating, it will be consumed.- Parameters:
actionName
- the name of the action to activateparameter
- the optional parameter to the activationplatformData
- the platform data to send
-
changeActionStateFull
Changes the state of a remote action.This is the same as g_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.
platformData
must be non-null
and must have the typeG_VARIANT_TYPE_VARDICT
. If it is floating, it will be consumed.- Parameters:
actionName
- the name of the action to change the state ofvalue
- the new requested value for the stateplatformData
- the platform data to send
-