UsageAndDiagnosticsViewModel

Shows and stores the reporting and consent choices for the usage and diagnostics screen and the onboarding page. The repository applies each stored choice to the consent SDKs, so this only follows and writes them. A failed read replaces the choices with a retryable failure; a failed write keeps them on screen and shows an error message.

Constructors

Link copied to clipboard
constructor(repository: UsageAndDiagnosticsRepository, telemetryRepository: TelemetryRepository)

Properties

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

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