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*> *)gdprConsentState

Discussion

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 *)purpose

Discussion

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 *)purpose

Discussion

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*> *)consentState

Discussion

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 *)ccpaConsentState

Discussion

Retrieve the current CCPA consent state for this user.

Declared In

MPConsentState.h

– setCCPAConsentState:

Set the CCPA consent state.

- (void)setCCPAConsentState:(MPCCPAConsent *)consent

Discussion

Set the CCPA consent state.

Declared In

MPConsentState.h

– removeCCPAConsentState

Remove the CCPA consent state for this builder.

- (void)removeCCPAConsentState

Discussion

Remove the CCPA consent state for this builder.

Declared In

MPConsentState.h