Returns a Boolean value indicating whether it is valid for the state machine to transition from its current state to a state of the specified class.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The class of state for which to determine whether a transition is allowed.
true if a transition is allowed from the current state to a state of the specified class; otherwise
You build a state machine by creating a unique
GKState subclass for each distinct state possible for the machine. The
is method of each state object determines which other states a state machine is allowed to transition into from that state.