Update

fun interface Update<M, E, F>

An interface representing the Update function used by Mobius for performing model transitions and requesting side-effects.

Implementations of this interface must be pure - they should have no model and no side-effects. This means that given the same arguments, the function must always return the same Next. Each time a new event occurs, the update method will be called and a Next is expected.

Functions

Link copied to clipboard
abstract fun update(model: M, event: E): Next<M, F>