public class GDPR
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GDPR.GDPR_CONSENT
GDPR compliance settings:
NON_BEHAVIORAL(0) means the user does not consent to targeting (Contextual ads)
BEHAVIORAL(1) means the user consents (Behavioral and Contextual Ads)
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GDPR_STANDARD |
| Constructor and Description |
|---|
GDPR(GDPR.GDPR_CONSENT consent)
Use interface GDPR_CONSENT
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConsent() |
java.lang.String |
getPrivacyStandard() |
boolean |
isValidConsent(java.lang.String consent)
Check provided consent against expected values.
|
JSONObject |
toJson() |
public static final java.lang.String GDPR_STANDARD
public GDPR(GDPR.GDPR_CONSENT consent)
consent - public boolean isValidConsent(java.lang.String consent)
DataUseConsentisValidConsent in interface DataUseConsentpublic java.lang.String getPrivacyStandard()
getPrivacyStandard in interface DataUseConsentpublic java.lang.String getConsent()
getConsent in interface DataUseConsentpublic JSONObject toJson()
toJson in interface DataUseConsent