Android

Android MVI Architecture

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

17 câu hỏi phỏng vấn·
Mid-Level
1

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

Câu trả lời

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?

Câu trả lời

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?

Câu trả lời

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 câu hỏi phỏng vấn

Nắm vững Android cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí