Package 

Interface MVIView

  • All Implemented Interfaces:
    pro.respawn.flowmvi.api.ActionConsumer , pro.respawn.flowmvi.api.StateConsumer

    
    public interface MVIView<S extends MVIState, I extends MVIIntent, A extends MVIAction>
     implements StateConsumer<S>, ActionConsumer<A>
                        

    A consumer of Store's events that has certain state S. Each MVIView needs a container, a way to send intents to it, a way to render the new state, and a way to consume side-effects.

    • Method Summary

      Modifier and Type Method Description
      Unit send(I intent) Send an intent for the container to process e.g.
      Unit sendAction(I $self)
      abstract Container<S, I, A> getContainer() Container, an object that wraps a Store.
      • Methods inherited from class pro.respawn.flowmvi.android.view.MVIView

        consume, render
      • Methods inherited from class java.lang.Object

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

      • send

         Unit send(I intent)

        Send an intent for the container to process e.g. a user click.

      • getContainer

         abstract Container<S, I, A> getContainer()

        Container, an object that wraps a Store.