Skip to content

UsercentricsEvent API

onConsentUpdated

UsercentricsEvent.shared.onConsentUpdated(callback: <(UpdatedConsentEvent) -> Void>)
UsercentricsEvent.onConsentUpdated(callback: <(UpdatedConsentEvent) -> Unit>)
Inputs Type Notes
callback <(UpdatedConsentEvent) -> Unit> Callback with relevant information regarding consents

dispose

UsercentricsEvent.shared.dispose()
UsercentricsEvent.dispose()

Objects

UpdatedConsentEvent

Property Type Notes
consents UsercentricsServiceConsent List of Services with consent choices.
controllerId String A Usercentrics generated ID, used to identify a specific user. See Restore User Session
tcString String IAB's Transparency & Consent String
uspString String IAB's US Privacy String

UsercentricsServiceConsent

Property Type Notes
templateId String ID used to match a service with frameworks running on your app.
status Bool Consent status given to this specific service.
dataProcessor String Name of entity processing the data that was collected via this service.
version String Legal template version. See Service Settings.