Gio.Action::get_state_type
function vfunc_get_state_type(): GLib.VariantType {
}
Queries the type of the state of action.
If the action is stateful (e.g. created with Gio.SimpleAction.new_stateful) then this function returns the GLib.VariantType of the state. This is the type of the initial value given as the state. All calls to Gio.Action.prototype.change_state must give a GLib.Variant of this type and Gio.Action.prototype.get_state will return a GLib.Variant of the same type.
If the action is not stateful (e.g. created with Gio.SimpleAction.new) then this function will return null. In that case, Gio.Action.prototype.get_state will return null and you must not call Gio.Action.prototype.change_state.
Since 2.28
- Returns
the state type, if the action is stateful