interface MVFlow<State, Action>
(source)
Interface that defines all the MVI logic of this library.
State
- a class that holds all information about the current state represented in this MVFlow object.
Action
- a class that represents all the interactions that can happen inside this view and associated
information.
View |
An interface for a View used in MVFlow. interface View<State, Action> |
addExternalActions |
This method adds an external source of actions into the MVFlow object. abstract fun addExternalActions(actions: Flow<Action>, logger: Logger? = null): Unit |
takeView |
Call this method when a new View is ready to render the state of this MVFlow object. abstract fun takeView(viewCoroutineScope: CoroutineScope, view: View<State, Action>, initialActions: List<Action> = emptyList(), logger: Logger? = null): Unit |
MVFlowWithEffects |
Extension of MVFlow to be used together with a HandlerWithEffects. interface MVFlowWithEffects<State, Action, Effect> : MVFlow<State, Action> |