OnboardingViewModel

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)

Properties

Link copied to clipboard
val messages: StateFlow<ImmutableList<UiMessage>>
Link copied to clipboard
val state: StateFlow<OnboardingUiState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard