-
public final class ConsumerScopeKt
-
-
Method Summary
Modifier and Type Method Description final static <A extends MVIAction> Unitconsume(MVIProvider<?, ?, A> $self, Lifecycle.State lifecycleState, SuspendFunction2<CoroutineScope, A, Unit> onAction)final static <T extends MVIIntent, A extends MVIAction> UnitEmptyScope(Function1<ConsumerScope<T, A>, Unit> call)A no-op scope for testing and preview purposes. -
-
Method Detail
-
consume
final static <A extends MVIAction> Unit consume(MVIProvider<?, ?, A> $self, Lifecycle.State lifecycleState, SuspendFunction2<CoroutineScope, A, Unit> onAction)
-
EmptyScope
final static <T extends MVIIntent, A extends MVIAction> Unit EmptyScope(Function1<ConsumerScope<T, A>, Unit> call)
A no-op scope for testing and preview purposes. ConsumerScope.send and ConsumerScope.consume do nothing
-
-
-
-