DisplaySettingsViewModel
class DisplaySettingsViewModel(displayPreferences: DisplayPreferencesRepository, themePreferences: ThemePreferencesRepository, telemetryRepository: TelemetryRepository) : LoggedScreenViewModel<DisplaySettingsUiState, DisplaySettingsEvent> (source)
Follows and stores the display preferences the display settings screen shows. A failed read replaces them with a retryable failure; a failed write keeps them on screen and shows an error message. The shell's layout choices are written by the screen itself, not here.
Constructors
Link copied to clipboard
constructor(displayPreferences: DisplayPreferencesRepository, themePreferences: ThemePreferencesRepository, telemetryRepository: TelemetryRepository)