-
public class UserConsentManager extends BaseManager
UserConsent manager. It is initialized during SDK initialization. It uses sdk values (for this SDK only) and "real" values according to the standards.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringGDPR_2_SUBJECT_KEYpublic final static StringGDPR_2_CONSENT_KEYpublic final static StringGDPR_2_PURPOSE_CONSENT_KEYpublic final static StringUS_PRIVACY_KEYpublic final static StringGPP_STRING_KEYpublic final static StringGPP_SID_KEYprivate StringrealGppStringprivate StringrealGppSid
-
Constructor Summary
Constructors Constructor Description UserConsentManager(Context context)
-
Method Summary
Modifier and Type Method Description StringgetRealGppString()StringgetRealGppSid()voidinitConsentValues()BooleangetSubjectToCoppa()voidsetSubjectToCoppa(@Nullable() Boolean value)BooleangetSubjectToGdpr()voidsetSubjectToGdpr(@Nullable() Boolean value)StringgetGdprConsent()voidsetGdprConsent(@Nullable() String consent)StringgetGdprPurposeConsents()BooleangetGdprPurposeConsent(int index)voidsetGdprPurposeConsents(@Nullable() String consent)StringgetUsPrivacyString()voidsetUsPrivacyString(@Nullable() String value)booleancanAccessDeviceData()Truth table. -
-
Constructor Detail
-
UserConsentManager
UserConsentManager(Context context)
-
-
Method Detail
-
getRealGppString
@Nullable() String getRealGppString()
-
getRealGppSid
@Nullable() String getRealGppSid()
-
initConsentValues
void initConsentValues()
-
getSubjectToCoppa
@Nullable() Boolean getSubjectToCoppa()
-
setSubjectToCoppa
void setSubjectToCoppa(@Nullable() Boolean value)
-
getSubjectToGdpr
@Nullable() Boolean getSubjectToGdpr()
-
setSubjectToGdpr
void setSubjectToGdpr(@Nullable() Boolean value)
-
getGdprConsent
@Nullable() String getGdprConsent()
-
setGdprConsent
void setGdprConsent(@Nullable() String consent)
-
getGdprPurposeConsents
@Nullable() String getGdprPurposeConsents()
-
getGdprPurposeConsent
@Nullable() Boolean getGdprPurposeConsent(int index)
-
setGdprPurposeConsents
void setGdprPurposeConsents(@Nullable() String consent)
-
getUsPrivacyString
@Nullable() String getUsPrivacyString()
-
setUsPrivacyString
void setUsPrivacyString(@Nullable() String value)
-
canAccessDeviceData
boolean canAccessDeviceData()
Truth table. Fetches advertising identifier based TCF 2.0 Purpose1 value.
deviceAccessConsent=true deviceAccessConsent=false deviceAccessConsent undefined
gdprApplies=false Yes, read IDFA No, don’t read IDFA Yes, read IDFAgdprApplies=true Yes, read IDFA No, don’t read IDFA No, don’t read IDFAgdprApplies=undefined Yes, read IDFA No, don’t read IDFA Yes, read IDFA
-
-
-
-