Data Transition State Api
Same as TransitionStateApi interface, for specialized DataState api.
Inheritors
Functions
Creates type safe argument transition to DataState.
Shortcut function for type safe target-less (self targeted) transition.
Shortcut function for type safe argument transition. Data transition can be target-less (self-targeted), it is useful to update DataState data Note that transition must be TransitionType.EXTERNAL to update data.
Data transition, otherwise same as transitionOn
Find transition by Event type. This might be used to start listening to transition after state machine setup.
Find transition by name. This might be used to start listening to transition after state machine setup.
Require transition by Event type
Creates transition. You can specify guard function. Such guarded transition is triggered only when guard function returns true.
Shortcut overload for transition with an optional target state
Creates conditional transition. Caller should specify lambda which calculates TransitionDirection. For example target state may be different depending on some condition.
This is more powerful version of transition function. Here target state is a lambda which returns desired State. This allows to use lateinit state variables for recursively depending states and choose target state depending on application business logic.