Android ViewModel & State Management Instructions Use to hold state and business logic. It must outlive configuration changes. 1. UI State (StateFlow) What : Represents the persistent state of the UI (e.g., , , ). Type : . Initialization : Must have an initial value. Exposure : Expose as a read-only backing a private . Updates : Update state using for thread safety. 2. One-Off Events (SharedFlow) What : Transient events like "Show Toast", "Navigate to Screen", "Show Snackbar". Type : . Configuration : Must use to prevent events from re-triggering on screen rotation. Sending : Use (suspend) or…