Android

Android MVI Architecture

MVI Architecture and alternative patterns for Android (MVC, MVP, MVVM, Redux)

17 domande da colloquioยท
Mid-Level
1

What is the MVI (Model-View-Intent) pattern?

Risposta

MVI is an architectural pattern that manages application state in a unidirectional way. Intents represent user actions, Model is the immutable application state, and View observes and displays this state.

2

What are the 3 main components of the MVI pattern?

Risposta

MVI consists of: Model (immutable state), View (user interface observing the state), and Intent (represents user actions/intentions).

3

What is an Intent in the MVI pattern?

Risposta

In MVI, an Intent represents a user intention or action (e.g., button click, text input). It is sent to the ViewModel/Processor which produces a new state. Not to be confused with Android Intent for navigation.

4

What is the Model in the MVI pattern?

5

What is the main advantage of MVI pattern over MVVM?

+14 domande da colloquio

Padroneggia Android per il tuo prossimo colloquio

Accedi a tutte le domande, flashcards, test tecnici, esercizi di code review e simulatori di colloquio.

Inizia gratis