Action.getState
glib.variant.Variant getState()Queries the current state of action.
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 [gio.action.Action.getStateType].
The return value (if non-null) should be freed with [glib.variant.Variant.unref] when it is no longer required.
Returns
the current state of the action