Skip to end of metadata
Go to start of metadata

JavaScript is disabled on your browser.
com.appnexus.opensdk

Class ANGDPRSettings

  • java.lang.Object
    • com.appnexus.opensdk.ANGDPRSettings


  • public class ANGDPRSettings
    extends java.lang.Object
    Global GDPR Settings class.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ANGDPRSettings() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.Boolean getConsentRequired(android.content.Context context)
      Get the Consent Required value that will be sent in the request.
      static java.lang.String getConsentString(android.content.Context context)
      Get the Consent String that will be sent in the request.
      static void reset(android.content.Context context)
      Clears the value that were previously set using ANGDPRSettings.setConsentString and ANGDPRSettings.setConsentRequired
      static void setConsentRequired(android.content.Context context, boolean subjectToGDPR)
      Set the consentRequired value in the SDK
      static void setConsentString(android.content.Context context, java.lang.String consentString)
      Set the consent string in the SDK
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ANGDPRSettings

        public ANGDPRSettings()
    • Method Detail

      • setConsentString

        public static void setConsentString(android.content.Context context,
                                            java.lang.String consentString)
        Set the consent string in the SDK
        Parameters:
        consentString - A valid Base64 encode consent string as per https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework
      • setConsentRequired

        public static void setConsentRequired(android.content.Context context,
                                              boolean subjectToGDPR)
        Set the consentRequired value in the SDK
        Parameters:
        subjectToGDPR - true if subject to GDPR regulations, false otherwise
      • reset

        public static void reset(android.content.Context context)
        Clears the value that were previously set using ANGDPRSettings.setConsentString and ANGDPRSettings.setConsentRequired
        Parameters:
        context -
      • getConsentString

        public static java.lang.String getConsentString(android.content.Context context)
        Get the Consent String that will be sent in the request.
        Parameters:
        context -
        Returns:
        A valid Base64 encode consent string as per https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework or "" if not set
      • getConsentRequired

        public static java.lang.Boolean getConsentRequired(android.content.Context context)
        Get the Consent Required value that will be sent in the request.
        Parameters:
        context -
        Returns:
        true if subject to GDPR regulations, false if not subject to regulations. null undetermined.

  • No labels