com.toxicbakery.kfinstatemachine / TransitionCallback

TransitionCallback

interface TransitionCallback<S, T : Any>

Functions

enteredState

abstract fun enteredState(stateMachine: StateMachine<S, T>, previousState: S, transition: T, currentState: S): Unit

After a state transition has been verified to be legal and also applied to a machine.

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.