DefaultConsentRepository

constructor(remote: ConsentRemoteDataSource, local: ConsentPreferencesDataSource, buildInfoRepository: BuildInfoRepository, diagnostics: DiagnosticsReporter, collection: TelemetryCollection, requestScope: CoroutineScope = CoroutineScope(context = SupervisorJob() + Dispatchers.Main.immediate))(source)

Parameters

diagnostics

breadcrumbs that trace the consent lifecycle; the repository reports no analytics events.

collection

applies the person's consent to the telemetry SDKs' collection switches.

requestScope

scope that owns the shared, process-wide consent round trip. It defaults to the immediate main dispatcher because UMP requires its entry points to be called from the main thread.