get_state


Description:

[ Version ( since = "2.28" ) ]
public abstract Variant? get_state ()

Queries the current state of this.

If the action is not stateful then `NULL` will be returned. If the action is stateful then the type of the return value is the type given by [ method@Gio.Action.get_state_type].

The return value (if non-`NULL`) should be freed with [method@GLib.Variant.unref] when it is no longer required.

Parameters:

this

a [type@Gio.Action]

Returns:

the current state of the action