OnboardingThemeViewModel
class OnboardingThemeViewModel(preferences: ThemePreferencesRepository, seasonal: SeasonalThemeRepository, telemetryRepository: TelemetryRepository) : LoggedScreenViewModel<OnboardingThemeUiState, OnboardingThemeEvent> (source)
ViewModel for the onboarding theme page. It reads and writes the same ThemePreferencesRepository as the theme settings page, so a choice made here is the app's theme from then on.
A failed write shows an error message. A failed read is reported and the page keeps what it showed last.
Constructors
Link copied to clipboard
constructor(preferences: ThemePreferencesRepository, seasonal: SeasonalThemeRepository, telemetryRepository: TelemetryRepository)