TealiumConsentManager
Provides methods for Tealium Consent Management.
Class: TealiumConsentManager
The following summarizes the commonly used methods of the iOS (Swift) TealiumConsentManager
class.
Method/Property | Description |
---|---|
onConsentExpiration |
Callback to execute once consent selections expire |
resetUserConsentPreferences() |
Clears all currently stored consent preferences in memory and in persistent storage |
userConsentStatus |
Gets or sets the user’s consent status |
userConsentCategories |
Gets or sets the user’s consent categories |
onConsentExpiration
Callback to execute once consent selections expire.
config.onConsentExpiration = {
// display consent modal
}
userConsentStatus
Gets or sets the current consent status.
let categories = tealium.consentManager?.userConsentStatus
tealium.consentManager?.userConsentStatus = .consented
Parameter Type | Description |
---|---|
TealiumConsentStatus |
Current consent status |
resetUserConsentPreferences()
Clears all currently stored consent preferences in memory and in persistent storage. Reverts to "unknown"
consent state, with no categories.
resetUserConsentPreferences()
userConsentCategories
Gets or sets all current consent categories.
let categories = tealium.consentManager?.userConsentCategories
tealium.consentManager?.userConsentCategories = [.cdp]
Parameter Type | Description |
---|---|
TealiumConsentCategories |
Current Tealium consent categories |
This page was last updated: January 7, 2023