PrivacyViewModel

ViewModel for the privacy page: the rows built from PrivacySettingsProvider.

The provider only returns URLs, so this needs no dispatcher. A provider that throws is Loadable.Failed, reported to telemetry, with a retry. Opening a row's link or page needs a Context or the navigator, so the screen does it.

Constructors

Link copied to clipboard
constructor(provider: PrivacySettingsProvider, telemetryRepository: TelemetryRepository)

Properties

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

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: PrivacyEvent)