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 provider you used in MVIComposable
      Unit sendAction(I $self)
      abstract Unit consume(SuspendFunction2<CoroutineScope, A, Unit> consumer) Call this somewhere at the top of your MVIComposable to consume actions received from the provider
      • 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 provider you used in MVIComposable

      • consume

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

        Call this somewhere at the top of your MVIComposable to consume actions received from the provider