OnboardingViewModel
class OnboardingViewModel(onboardingRepository: OnboardingRepository, consentRepository: ConsentRepository, telemetryRepository: TelemetryRepository) : LoggedScreenViewModel<OnboardingUiState, OnboardingEvent> (source)
ViewModel for the onboarding screen: the selected page, the consent request, and saving completion.
Both repositories are main-safe, so it needs no dispatcher. Finishing is the only way out of onboarding, so a failed save shows an error message instead of leaving a button that seems to do nothing.
Constructors
Link copied to clipboard
constructor(onboardingRepository: OnboardingRepository, consentRepository: ConsentRepository, telemetryRepository: TelemetryRepository)