com.toxicbakery.kfinstatemachine / TransitionCallback / enteringState

enteringState

abstract fun enteringState(stateMachine: StateMachine<S, T>, currentState: S, transition: T, targetState: S): Unit

After a state transition has been verified to be legal but has not yet been applied to the machine.

Parameters

stateMachine - the machine notifying the state change

currentState - the current state of the machine

transition - the transition that initiated the state change

targetState - the resulting state of this transition