Package-level declarations

Types

Link copied to clipboard
@ExperimentalCoroutinesApi
abstract class BaseBuilderBlock<InputState : S, S : Any, A : Any>
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
@ExperimentalCoroutinesApi
class ConditionBuilderBlock<InputState : S, S : Any, A : Any> : BaseBuilderBlock<InputState, S, A>
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
@ExperimentalCoroutinesApi
abstract class FlowReduxStateMachine<S : Any, A : Any>(initialStateSupplier: () -> S) : StateMachine<S, A>
Link copied to clipboard
@ExperimentalCoroutinesApi
class FlowReduxStoreBuilder<S : Any, A : Any>
Link copied to clipboard
@ExperimentalCoroutinesApi
class IdentityBuilderBlock<InputState : S, S : Any, A : Any> : BaseBuilderBlock<InputState, S, A>
Link copied to clipboard
@ExperimentalCoroutinesApi
class InStateBuilderBlock<InputState : S, S : Any, A : Any> : BaseBuilderBlock<InputState, S, A>
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.