Class UserConsentManager
java.lang.Object
org.prebid.mobile.rendering.sdk.BaseManager
org.prebid.mobile.rendering.sdk.deviceData.managers.UserConsentManager
UserConsent manager. It is initialized during SDK initialization.
It uses Prebid values (for Prebid SDK only) and "real" values
according to the standards.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTruth table.getGdprPurposeConsent(int index) protected BooleanvoidvoidsetGdprConsent(String consent) voidsetGdprPurposeConsents(String consent) voidsetSubjectToCoppa(Boolean value) voidsetSubjectToGdpr(Boolean value) voidsetUsPrivacyString(String value) Methods inherited from class org.prebid.mobile.rendering.sdk.BaseManager
getContext
-
Field Details
-
GDPR_2_SUBJECT_KEY
- See Also:
-
GDPR_2_CONSENT_KEY
- See Also:
-
GDPR_2_PURPOSE_CONSENT_KEY
- See Also:
-
US_PRIVACY_KEY
- See Also:
-
GPP_STRING_KEY
- See Also:
-
GPP_SID_KEY
- See Also:
-
-
Constructor Details
-
UserConsentManager
public UserConsentManager(android.content.Context context)
-
-
Method Details
-
initConsentValues
public void initConsentValues() -
getSubjectToCoppa
-
setSubjectToCoppa
-
getSubjectToGdpr
-
getRealSubjectToGdprBoolean
-
setSubjectToGdpr
-
getGdprConsent
-
setGdprConsent
-
getGdprPurposeConsents
-
getGdprPurposeConsent
-
setGdprPurposeConsents
-
getUsPrivacyString
-
setUsPrivacyString
-
getRealGppString
-
getRealGppSid
-
canAccessDeviceData
public 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 IDFA gdprApplies=true Yes, read IDFA No, don’t read IDFA No, don’t read IDFA gdprApplies=undefined Yes, read IDFA No, don’t read IDFA Yes, read IDFA
-