SimpleSyntax

class SimpleSyntax<S : Any, SE : Any>(containerContext: ContainerContext<S, SE>)

Properties

Link copied to clipboard
val containerContext: ContainerContext<S, SE>
Link copied to clipboard
val state: S

The current state which can change throughout execution of the orbit block

Extensions

Link copied to clipboard
suspend fun <S : Any, SE : Any> SimpleSyntax<S, SE>.postSideEffect(sideEffect: SE)

Side effects allow you to deal with things like tracking, navigation etc.

Link copied to clipboard
suspend fun <S : Any, SE : Any> SimpleSyntax<S, SE>.reduce(reducer: SimpleContext<S>.() -> S)

Reducers reduce the current state and incoming events to produce a new state.

Link copied to clipboard
suspend fun <S : Any, SE : Any> SimpleSyntax<S, SE>.repeatOnSubscription(block: suspend CoroutineScope.() -> Unit)