AdsSettingsViewModel
class AdsSettingsViewModel(repository: AdsSettingsRepository, consentRepository: ConsentRepository, telemetryRepository: TelemetryRepository) : LoggedScreenViewModel<AdsSettingsUiState, AdsSettingsEvent> (source)
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)