Consent Class
Invoke these methods on a consent state object.
Usage: var consent = mParticle.Consent.createConsentState()
consent.setGDPRCoonsentState()
Item Index
Methods
addGDPRConsentState
-
purpose
-
gdprConsent
Add a GDPR Consent State to the consent state object
Parameters:
-
purpose
Object[String] Data processing purpose that describes the type of processing done on the data subject’s data
-
gdprConsent
Object[Object] A GDPR consent object created via mParticle.Consent.createGDPRConsent(...)
getCCPAConsentStatensent
()
Object
Gets the CCPA Consent State
Returns:
A CCPA Consent State
getGDPRConsentState
()
Object
Gets the GDPR Consent State
Returns:
A GDPR Consent State
removeCCPAConsentState
()
Removes CCPA from the consent state object
removeGDPRConsentState
-
purpose
Remove a GDPR Consent State to the consent state object
Parameters:
-
purpose
Object[String] Data processing purpose that describes the type of processing done on the data subject’s data
setCCPAConsentState
-
ccpaConsent
Sets a CCPA Consent state (has a single purpose of 'data_sale_opt_out')
Parameters:
-
ccpaConsent
ObjectCCPA Consent State