StateMachineEventListener Interface API Reference
The StateMachineEventListener
interface defines a set of callback methods that respond to various state machine events. Implementing this interface allows for handling state machine transition events.
Methods
Event Method | Description |
---|---|
onStateEntered(enteringState: String) | Triggers on entering new state |
onStateExit(leavingState: String) | Triggers on exiting a state |
onTransition(previousState: String, newState: String) | Triggers on state transition |