ConsentCategory
Reference guide for ConsentCategory class and methods provided by Tealium for Android (Kotlin).
Class: ConsentCategory
The following summarizes the commonly used methods of the ConsentCategory
class for Kotlin.
Method | Description |
---|---|
ALL |
Returns the complete list of supported consent categories |
consentCategory(String) |
Returns the ConsentCategory relating to the given String; else null |
consentCategories(Set<String>) |
Returns the Set of ConsentCategory objects relating to the given Strings; invalid entries are ignored. |
ALL
Returns the full set of all available ConsentCategory
items.
ConsentCategory.ALL
The following is the entire set of available categories:
setOf(
AFFILIATES,
ANALYTICS,
BIG_DATA,
CDP,
COOKIEMATCH,
CRM,
DISPLAY_ADS,
EMAIL,
ENGAGEMENT,
MOBILE,
MONITORING,
PERSONALIZATION,
SEARCH,
SOCIAL,
MISC
)
consentCategory(String)
Returns the relevant ConsentCategory
for the given String. The parameter is case-insensitive.
ConsentCategory.consentCategory("cdp") // returns ConsentCategory.CDP
consentCategories(Set<String>)
Returns the set of relevant ConsentCategory
object for the given Strings. The parameters are case-insensitive.
ConsentCategory.consentCategories(setOf("cdp", "invalid", "email"))
// returns setOf(ConsentCategory.CDP, ConsentCategory.EMAIL)
This page was last updated: January 7, 2023