canEnterState
TypeScriptcanEnterState(stateClass: string): booleanSwift declarationfunc canEnterState(_ stateClass: AnyClass) -> Boolclass · iOS 9.0+ · SDK 27.1
class GKStateMachinecanEnterState(stateClass: string): booleanSwift declarationfunc canEnterState(_ stateClass: AnyClass) -> Boolenter(stateClass: string): booleanSwift declarationfunc enter(_ stateClass: AnyClass) -> Boolstatic init(states: Array<GKState>): GKStateMachineSwift declarationinit(states: [GKState])update(sec: number): voidSwift declarationfunc update(deltaTime sec: TimeInterval)get currentState(): (GKState) | nullSwift declarationvar currentState: GKState? { get }state(stateClass: string): (GKState) | nullSwift declarationfunc state<StateType>(forClass stateClass: StateType.Type) -> StateType? where StateType : GKStateGets the state of the indicated class. Returns nil if the state machine does not have this state. - Parameter forClass: the type of the state you want to get
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
GKStateMachine.init()
inherited init: cannot prove legal (class declares 1 custom initializer)