Package-level declarations
Types
Link copied to clipboard
ViewModel for managing UI-related data for notes in a lifecycle-conscious way. This class is responsible for preparing and managing the data for an Activity or a Fragment. It also handles communication with the data layer (NoteDao) for CRUD operations.
Link copied to clipboard
Factory class for creating instances of NoteViewModel. This is necessary because NoteViewModel has a constructor parameter (noteDao), and ViewModelProvider needs a way to instantiate it.
Link copied to clipboard
ViewModel responsible for managing the application's theme state (dark or light mode). It holds the current theme preference and provides a way to toggle it. UI components can observe the theme state from this ViewModel to reactively update their appearance.