Class UserConsentUtils

java.lang.Object
org.prebid.mobile.rendering.sdk.UserConsentUtils

public class UserConsentUtils extends Object
Helps to get/set consents values, checks if UserConsentManager was created (it's created in
invalid reference
org.prebid.mobile.PrebidMobile#initializeSdk(Context, SdkInitializationListener)
). If the consent manager created it gets/sets value, otherwise logs error and returns null.
  • Constructor Details

    • UserConsentUtils

      public UserConsentUtils()
  • Method Details

    • tryToGetSubjectToCoppa

      public static Boolean tryToGetSubjectToCoppa()
    • tryToSetSubjectToCoppa

      public static void tryToSetSubjectToCoppa(Boolean isCoppa)
    • tryToGetSubjectToGdpr

      public static Boolean tryToGetSubjectToGdpr()
    • tryToSetPrebidSubjectToGdpr

      public static void tryToSetPrebidSubjectToGdpr(Boolean value)
    • tryToGetGdprConsent

      public static String tryToGetGdprConsent()
    • tryToSetPrebidGdprConsent

      public static void tryToSetPrebidGdprConsent(String consent)
    • tryToGetGdprPurposeConsents

      public static String tryToGetGdprPurposeConsents()
    • tryToSetPrebidGdprPurposeConsents

      public static void tryToSetPrebidGdprPurposeConsents(String consent)
    • tryToGetGdprPurposeConsent

      public static Boolean tryToGetGdprPurposeConsent(int index)
    • tryToGetDeviceAccessConsent

      public static Boolean tryToGetDeviceAccessConsent()