One Logo Pool Ball
GameplayKit · IOS API REFERENCE

GKState

class · iOS 9.0+ · SDK 27.1

class GKState

Members (6)

method · iOS 9.0+

didEnter

TypeScript
didEnter(previousState?: (GKState) | null): void
Swift declaration
func didEnter(from previousState: GKState?)
init · iOS 9.0+

init

TypeScript
static init(): GKState
Swift declaration
init()
method · iOS 9.0+

isValidNextState

TypeScript
isValidNextState(stateClass: string): boolean
Swift declaration
func isValidNextState(_ stateClass: AnyClass) -> Bool
method · iOS 9.0+

update

TypeScript
update(seconds: number): void
Swift declaration
func update(deltaTime seconds: TimeInterval)
method · iOS 9.0+

willExit

TypeScript
willExit(nextState: GKState): void
Swift declaration
func willExit(to nextState: GKState)
get · iOS 9.0+

stateMachine

TypeScript
get stateMachine(): (GKStateMachine) | null
Swift declaration
weak var stateMachine: GKStateMachine? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All GameplayKit types →