Skip to content

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

Notifications You must be signed in to change notification settings

JujareVinayak/MVIArchitectureDemo

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages