Package-level declarations

Types

Link copied to clipboard
sealed class ChangedState<out S>

Represents a state transition. Instances of this a created through the State.mutate, State.override and State.noChange methods.

Link copied to clipboard

Defines which behavior a DSL Block such as on<Action> should have whenever a new action or value is emitted.

Link copied to clipboard
annotation class FlowReduxDsl
Link copied to clipboard
@FlowPreview
@ExperimentalCoroutinesApi
abstract class FlowReduxStateMachine<S : Any, A : Any>(initialStateSupplier: () -> S) : StateMachine<S, A>
Link copied to clipboard
@FlowPreview
@ExperimentalCoroutinesApi
class FlowReduxStoreBuilder<S : Any, A : Any>
Link copied to clipboard
@FlowPreview
@ExperimentalCoroutinesApi
class InStateBuilderBlock<InputState : S, S : Any, A : Any>(_isInState: (S) -> Boolean)
Link copied to clipboard
class State<InputState : Any>(val snapshot: InputState)

Allows to create ChangedState objects to change the state as a result of DSL methods like InStateBuilderBlock.on or InStateBuilderBlock.onEnter.

Functions

Link copied to clipboard
fun <S> ChangedState<S>.reduce(state: S): S

Transforms the given state according to ChangedState and returns the new S.