AdsSettingsViewModel

Shows and stores the ad preferences, and opens the UMP privacy form. The switches follow the store, so a failed write leaves them where they were and shows an error message. A failed read replaces them with a retryable failure.

Constructors

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

Properties

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

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