UsageAndDiagnosticsRepository

Repository exposing usage and diagnostics related settings to the rest of the application. Implementations should delegate to a data source to read and persist the underlying values.

Inheritors

Functions

Link copied to clipboard

Emits all usage and diagnostics related consent values.

Link copied to clipboard
abstract suspend fun setAdPersonalizationConsent(granted: Boolean)
Link copied to clipboard
abstract suspend fun setAdStorageConsent(granted: Boolean)
Link copied to clipboard
abstract suspend fun setAdUserDataConsent(granted: Boolean)
Link copied to clipboard
open suspend fun setAll(settings: UsageAndDiagnosticsSettings)

Stores every value of settings together, for whole-bundle answers such as "Allow all", so observeSettings never reports a mix of the old and new choices in between.

Link copied to clipboard
abstract suspend fun setAnalyticsConsent(granted: Boolean)
Link copied to clipboard
abstract suspend fun setUsageAndDiagnostics(enabled: Boolean)