Trait gio::prelude::RemoteActionGroupExt [−][src]
pub trait RemoteActionGroupExt: 'static { fn activate_action_full(
&self,
action_name: &str,
parameter: Option<&Variant>,
platform_data: &Variant
); fn change_action_state_full(
&self,
action_name: &str,
value: &Variant,
platform_data: &Variant
); }
Expand description
Required methods
Activates the remote action.
This is the same as ActionGroupExt::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-None
and must have the type
G_VARIANT_TYPE_VARDICT
. If it is floating, it will be consumed.
action_name
the name of the action to activate
parameter
the optional parameter to the activation
platform_data
the platform data to send
fn change_action_state_full(
&self,
action_name: &str,
value: &Variant,
platform_data: &Variant
)
fn change_action_state_full(
&self,
action_name: &str,
value: &Variant,
platform_data: &Variant
)
Changes the state of a remote action.
This is the same as ActionGroupExt::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-None
and must have the type
G_VARIANT_TYPE_VARDICT
. If it is floating, it will be consumed.
action_name
the name of the action to change the state of
value
the new requested value for the state
platform_data
the platform data to send