public class MyTargetPrivacy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.Boolean |
ccpaUserConsent |
java.lang.Boolean |
iabUserConsent |
boolean |
userAgeRestricted |
java.lang.Boolean |
userConsent |
| Constructor and Description |
|---|
MyTargetPrivacy(java.lang.Boolean userConsent,
java.lang.Boolean ccpaUserConsent,
java.lang.Boolean iabUserConsent,
boolean userAgeRestricted) |
| Modifier and Type | Method and 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.
|
@Nullable public final java.lang.Boolean userConsent
@Nullable public final java.lang.Boolean ccpaUserConsent
@Nullable public final java.lang.Boolean iabUserConsent
public final boolean userAgeRestricted
public MyTargetPrivacy(@Nullable
java.lang.Boolean userConsent,
@Nullable
java.lang.Boolean ccpaUserConsent,
@Nullable
java.lang.Boolean iabUserConsent,
boolean userAgeRestricted)
@NonNull public static MyTargetPrivacy currentPrivacy()
public static void setUserConsent(boolean userConsent)
userConsent - GDPR consentpublic static void setIabUserConsent(boolean useIABUserConsentConsent)
useIABUserConsentConsent - IAB consentpublic static void setCcpaUserConsent(boolean ccpaUserConsent)
ccpaUserConsent - CCPA consentpublic static void setUserAgeRestricted(boolean userAgeRestricted)
userAgeRestricted - true if user is under age of consentpublic boolean isConsent()