Package org.prebid.mobile.rendering.sdk
Class UserConsentUtils
java.lang.Object
org.prebid.mobile.rendering.sdk.UserConsentUtils
Helps to get/set consents values, checks if UserConsentManager was created
(it's created in
PrebidMobile.initializeSdk(Context, SdkInitializationListener)).
If the consent manager created it gets/sets value, otherwise logs error and returns null.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Booleanstatic Stringstatic BooleantryToGetGdprPurposeConsent(int index) static Stringstatic Booleanstatic Booleanstatic voidtryToSetPrebidGdprConsent(String consent) static voidtryToSetPrebidGdprPurposeConsents(String consent) static voidstatic voidtryToSetSubjectToCoppa(Boolean isCoppa)
-
Constructor Details
-
UserConsentUtils
public UserConsentUtils()
-
-
Method Details
-
tryToGetSubjectToCoppa
-
tryToSetSubjectToCoppa
-
tryToGetSubjectToGdpr
-
tryToSetPrebidSubjectToGdpr
-
tryToGetGdprConsent
-
tryToSetPrebidGdprConsent
-
tryToGetGdprPurposeConsents
-
tryToSetPrebidGdprPurposeConsents
-
tryToGetGdprPurposeConsent
-
tryToGetDeviceAccessConsent
-