TealiumConsentCategories
Provides methods for Tealium consent categories.
Class: TealiumConsentCategories
The following summarizes the commonly used methods of the iOS (Swift) TealiumConsentCategories
class.
Method | Description |
---|---|
all |
Returns the complete list of supported consent categories. |
consentCategoriesStringArrayToEnum() |
Returns consented categories as an enum, converted from a string array of consented categories. |
all
Returns the complete list of supported consent categories.
TealiumConsentCategories.all
Return Type | Description |
---|---|
[TealiumConsentCategories] |
All implemented consent categories. |
The following consent categories are available from [TealiumConsentCategories]
:
[.analytics
.affiliates
.displayAds
.email
.personalization
.search
.social
.bigData
.mobile
.engagement
.monitoring
.cdm
.cdp
.cookiematch
.misc]
consentCategoriesStringArrayToEnum()
Returns consented categories as an enum, converted from a string array of consented categories. Invalid string values are omitted from the resulting array.
consentCategoriesStringArrayToEnum(categories)
Parameters | Type | Description | Example |
---|---|---|---|
categories |
[String] |
An array of strings to convert into an array of TealiumConsentCategories | ["analytics", "bigData"] |
This page was last updated: January 7, 2023