public class UserPrivacyUtil
extends java.lang.Object
| Constructor and Description |
|---|
UserPrivacyUtil(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
GdprData |
getGdprData() |
java.lang.String |
getIabUsPrivacyString() |
java.lang.String |
getMopubConsent() |
java.lang.String |
getUsPrivacyOptout() |
boolean |
isCCPAConsentGivenOrNotApplicable()
Determine if CCPA consent is given.
|
boolean |
isMopubConsentGivenOrNotApplicable() |
void |
storeMopubConsent(java.lang.String mopubConsent) |
void |
storeUsPrivacyOptout(boolean uspOptout) |
@Nullable public GdprData getGdprData()
@NonNull public java.lang.String getIabUsPrivacyString()
public void storeUsPrivacyOptout(boolean uspOptout)
@NonNull public java.lang.String getUsPrivacyOptout()
public boolean isCCPAConsentGivenOrNotApplicable()
More information can be found here: https://go.crto.in/publisher-sdk-ccpa
true if consent is given, false otherwisepublic boolean isMopubConsentGivenOrNotApplicable()
public void storeMopubConsent(@Nullable
java.lang.String mopubConsent)
@NonNull public java.lang.String getMopubConsent()