StartupViewModel

ViewModel for the startup screen: the consent request that has to settle before the person can continue.

ConsentRepository is main-safe, so it needs no dispatcher. Consent settles whatever the outcome, so the screen never waits on a form that failed.

Constructors

Link copied to clipboard
constructor(consentRepository: ConsentRepository, telemetryRepository: TelemetryRepository)

Properties

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

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
fun onEvent(event: StartupEvent)