- MutableStateFlow is used for uiState as StateFlow's classes retains data on screen orientation changes.
- MutableSharedFlow is used for event to as SharedFlow's classes notify the listeners continously about changes. Here Viewmodel acts as listener.
- 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.
-
Notifications
You must be signed in to change notification settings - Fork 0
JujareVinayak/MVIArchitectureDemo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This project demonstrates the Model-View-Intent Architecture in Android with Kotlin and Compose.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published