Queries the type of the state of action.

If the action is stateful (e.g. created with SimpleAction.newStateful) 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 Action.changeState must give a glib.Variant of this type and Action.getState will return a glib.Variant of the same type.

If the action is not stateful (e.g. created with then this function will return NULL. In that case, Action.getState will return NULL and you must not call Action.changeState.

template ActionT(TStruct)

Return Value

the state type, if the action is stateful