MPConsentState Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | MPConsentState.h |
Overview
ConsentState represents the set of purposes and regulations for which a user has consented for data collection.
– gdprConsentState
Retrieve the current GDPR consent state for this user.
- (nullable NSDictionary<NSString*,MPGDPRConsent*> *)gdprConsentStateDiscussion
Retrieve the current GDPR consent state for this user.
Note that all purpose keys will be lower-cased and trimmed.
Declared In
MPConsentState.h
– addGDPRConsentState:purpose:
Add or override a single GDPR consent state.
- (void)addGDPRConsentState:(MPGDPRConsent *)consent purpose:(NSString *)purposeDiscussion
Add or override a single GDPR consent state.
Note that all purpose keys will be lower-cased and trimmed.
Declared In
MPConsentState.h
– removeGDPRConsentStateWithPurpose:
Remove a single GDPR consent state for this builder.
- (void)removeGDPRConsentStateWithPurpose:(NSString *)purposeDiscussion
Remove a single GDPR consent state for this builder.
Note that all purpose keys will be lower-cased and trimmed.
Declared In
MPConsentState.h
– setGDPRConsentState:
Set/replace the entire GDPR consent state of this builder.
- (void)setGDPRConsentState:(nullable NSDictionary<NSString*,MPGDPRConsent*> *)consentStateDiscussion
Set/replace the entire GDPR consent state of this builder.
Note that all purpose keys will be lower-cased and trimmed.
Declared In
MPConsentState.h
– ccpaConsentState
Retrieve the current CCPA consent state for this user.
- (nullable MPCCPAConsent *)ccpaConsentStateDiscussion
Retrieve the current CCPA consent state for this user.
Declared In
MPConsentState.h
– setCCPAConsentState:
Set the CCPA consent state.
- (void)setCCPAConsentState:(MPCCPAConsent *)consentDiscussion
Set the CCPA consent state.
Declared In
MPConsentState.h
– removeCCPAConsentState
Remove the CCPA consent state for this builder.
- (void)removeCCPAConsentStateDiscussion
Remove the CCPA consent state for this builder.
Declared In
MPConsentState.h