Class MyTargetPrivacy


  • public class MyTargetPrivacy
    extends java.lang.Object
    Provides the ability to manage the collection of personal user data in accordance with the requirements of the GDPR, CCPA and iAB.
    • Constructor Summary

      Constructors 
      Constructor Description
      MyTargetPrivacy​(java.lang.Boolean userConsent, java.lang.Boolean ccpaUserConsent, java.lang.Boolean iabUserConsent, boolean userAgeRestricted)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static MyTargetPrivacy currentPrivacy()  
      boolean isConsent()  
      static void setCcpaUserConsent​(boolean ccpaUserConsent)
      Gives SDK an information about user CCPA consent.
      static void setIabUserConsent​(boolean useIABUserConsentConsent)
      Gives SDK an information about user IAB consent.
      static void setUserAgeRestricted​(boolean userAgeRestricted)
      Gives SDK an information about if user under age of consent or not.
      static void setUserConsent​(boolean userConsent)
      Gives SDK an information about user GDPR consent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • userConsent

        @Nullable
        public final java.lang.Boolean userConsent
      • ccpaUserConsent

        @Nullable
        public final java.lang.Boolean ccpaUserConsent
      • iabUserConsent

        @Nullable
        public final java.lang.Boolean iabUserConsent
      • userAgeRestricted

        public final boolean userAgeRestricted
    • Constructor Detail

      • MyTargetPrivacy

        public MyTargetPrivacy​(@Nullable
                               java.lang.Boolean userConsent,
                               @Nullable
                               java.lang.Boolean ccpaUserConsent,
                               @Nullable
                               java.lang.Boolean iabUserConsent,
                               boolean userAgeRestricted)
    • Method Detail

      • currentPrivacy

        @NonNull
        public static MyTargetPrivacy currentPrivacy()
        Returns:
        current privacy state
      • setUserConsent

        public static void setUserConsent​(boolean userConsent)
        Gives SDK an information about user GDPR consent. If false, SDK will not send personal information according to GDPR rules
        Parameters:
        userConsent - GDPR consent
      • setIabUserConsent

        public static void setIabUserConsent​(boolean useIABUserConsentConsent)
        Gives SDK an information about user IAB consent. If false, SDK will not send personal information according to IAB rules
        Parameters:
        useIABUserConsentConsent - IAB consent
      • setCcpaUserConsent

        public static void setCcpaUserConsent​(boolean ccpaUserConsent)
        Gives SDK an information about user CCPA consent. If false, SDK will not send personal information according to CCPA rules
        Parameters:
        ccpaUserConsent - CCPA consent
      • setUserAgeRestricted

        public static void setUserAgeRestricted​(boolean userAgeRestricted)
        Gives SDK an information about if user under age of consent or not.
        Parameters:
        userAgeRestricted - true if user is under age of consent
      • isConsent

        public boolean isConsent()