HandleBeforeOldStateIsRemoved

Marker interface to indicate a KalugaState should execute an action before replacing another state.

Parameters

OldState

the type of KalugaState that is to be replaced.

Functions

Link copied to clipboard
abstract suspend fun beforeOldStateIsRemoved(oldState: OldState)

Called while transitioning from an old state before it is removed.