Package-level declarations

Types

Link copied to clipboard
@ExperimentalCoroutinesApi
abstract class BaseBuilder<InputState : S, S : Any, A : Any>
Link copied to clipboard

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

Link copied to clipboard
sealed class ChangedState<out S>

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

Link copied to clipboard
@ExperimentalCoroutinesApi
class ConditionBuilder<InputState : S, S : Any, A : Any> : BaseBuilder<InputState, S, A>
Link copied to clipboard
sealed interface ExecutionPolicy

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

Link copied to clipboard
@ExperimentalCoroutinesApi
class FlowReduxBuilder<S : Any, A : Any>
Link copied to clipboard

A live state machine that was created by a FlowReduxStateMachineFactory. state is a container allowing either access the current state or collecting the current state. dispatchAction and dispatch can be used to send actions to the state machine.

Link copied to clipboard
@ExperimentalCoroutinesApi
abstract class FlowReduxStateMachineFactory<S : Any, A : Any>(initialState: () -> S)
Link copied to clipboard
@ExperimentalCoroutinesApi
class IdentityBuilder<InputState : S, S : Any, A : Any> : BaseBuilder<InputState, S, A>
Link copied to clipboard
@ExperimentalCoroutinesApi
class InStateBuilder<InputState : S, S : Any, A : Any> : BaseBuilder<InputState, S, A>
Link copied to clipboard
@ExperimentalCoroutinesApi
abstract class LegacyFlowReduxStateMachine<S : Any, A : Any>(initialStateSupplier: () -> S) : StateMachine<S, A>
Link copied to clipboard
sealed class State<InputState : Any>

Allows access to a snapshot that can be used to access the current state at the time the action or event happened.

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.