GKStateMachine.CanEnterState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CanEnterState(GKState) |
Returns |
CanEnterState(Class) |
Returns |
CanEnterState(Type) |
Whether a transition from CurrentState to |
CanEnterState(GKState)
CanEnterState(Class)
Returns true
if a transition from the current state of the state machine leads to stateClass
. Otherwise, returns false
.
[Foundation.Export("canEnterState:")]
protected virtual bool CanEnterState (ObjCRuntime.Class stateClass);
abstract member CanEnterState : ObjCRuntime.Class -> bool
override this.CanEnterState : ObjCRuntime.Class -> bool
Parameters
- stateClass
- Class
Returns
- Attributes
Applies to
CanEnterState(Type)
Whether a transition from CurrentState to stateType
is valid.
public bool CanEnterState (Type stateType);
member this.CanEnterState : Type -> bool