getActionState

open fun getActionState(actionName: String): <Error class: unknown class>?

Queries the current state of the named action within @action_group.

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.ActionGroup.get_action_state_type.

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

Return

the current state of the action

Since

2.28

Parameters

actionName

the name of the action to query