Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 526 Bytes

README.md

File metadata and controls

5 lines (5 loc) · 526 Bytes

This project demonstrates the Model-View-Intent Architecture in Android with Kotlin and Compose.

  1. MutableStateFlow is used for uiState as StateFlow's classes retains data on screen orientation changes.
  2. MutableSharedFlow is used for event to as SharedFlow's classes notify the listeners continously about changes. Here Viewmodel acts as listener.
  3. Channel is used for effect (error toasts) as they are used to handle events that must be processed exactly once. In this case we show error toast exactly once.