Package 

Interface ConsumerScope


  • @Stable() 
    public interface ConsumerScope<I extends MVIIntent, A extends MVIAction>
    
                        

    An interface for the scope that provides magic send and consume functions inside your composable

    • Method Summary

      Modifier and Type Method Description
      abstract Unit send(I intent) Send a new intent for the store you used in MVIComposable
      Unit sendAction(I $self)
      abstract Unit consume(SuspendFunction2<CoroutineScope, A, Unit> onAction) Collect MVIActions that come from the Store.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • send

         abstract Unit send(I intent)

        Send a new intent for the store you used in MVIComposable

      • consume

         abstract Unit consume(SuspendFunction2<CoroutineScope, A, Unit> onAction)

        Collect MVIActions that come from the Store. Should only be called once per screen.