get_action_state_type
Description:
public virtual unowned VariantType? get_action_state_type (string action_name)
Queries the type of the state of the named action within this.
If the action is stateful then this function returns the [type@GLib.VariantType] of the state. All calls to [ method@Gio.ActionGroup.change_action_state] must give a [type@GLib.Variant] of this type and [method@Gio.ActionGroup.get_action_state] will return a [type@GLib.Variant] of the same type.
If the action is not stateful then this function will return `NULL`. In that case, [method@Gio.ActionGroup.get_action_state] will return `NULL` and you must not call [method@Gio.ActionGroup.change_action_state].
The state type of a particular action will never change but it is possible for an action to be removed and for a new action to be added with the same name but a different state type.
Parameters:
| this |
a [type@Gio.ActionGroup] |
| action_name |
the name of the action to query |
Returns:
|
the state type, if the action is stateful |