Package-level declarations
Types
Link copied to clipboard
class UsageAndDiagnosticsViewModel(repository: UsageAndDiagnosticsRepository, telemetryRepository: TelemetryRepository) : LoggedScreenViewModel<UsageAndDiagnosticsUiState, UsageAndDiagnosticsEvent>
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.
Functions
Link copied to clipboard
Usage and diagnostics settings: the reporting switch, and a row that opens FirebaseConsentDialog, the same privacy choices onboarding shows. The layout matches the ads settings screen, which is also one switch over the consent surface it belongs to.