MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.core.common.architecture/MviModel

MviModel

interface MviModel<Intent, State, Effect>

Model contract for Model-View-Intent architecture.

Inheritors

 
DefaultMviModel

Properties

Name Summary
effects [jvm]
abstract val effects: SharedFlow<Effect>
One-shot events generated by the state holder.
uiState [jvm]
abstract val uiState: StateFlow<State>
Representation of the state holder’s state for the view to consume.

Functions

Name Summary
reduce [jvm]
abstract fun reduce(intent: Intent)
Reduce a view intent updating the uiState accordingly.