Core library providing a base state machine implementation and graph features for building machines.
Includes base state machine implementation
compile "com.ToxicBakery.kfinstatemachine:core:2.+"
Rx bindings for listening to state changes and transition events of a machine.
val stateMachine = StateMachine(
Potential,
transition(Potential, Release::class, Kinetic),
transition(Kinetic, Store::class, Potential))
.let { stateMachine -> RxStateMachine(stateMachine) }
// Listen for state changes
stateMachine.observable.subscribe {...}
Includes Core dependency
compile "com.ToxicBakery.kfinstatemachine:rx:2.+"