Simple Consent
Handle consent using AATKit simple consent
Introduction
To set if the user has given or withheld consent for the collection and use of personal data (used for non-IAB partners), use the SimpleConsent default initializer and pass any value of the NonIABConsent enum
OBTAINEDif the user has given consent.WITHHELDif the user has declined.UNKNOWNif the user has not set a preference.
If SimpleConsent is used, AATKit will automatically read the IAB consent string stored (by third-party CMP) in SharedPreferences (if available) and respect the settings for Gravite.
Usage
private void configureAATKit() {
AATKitConfiguration configuration = new AATKitConfiguration(this);
...
Consent consent = new SimpleConsent(NonIABConsent.OBTAINED);
configuration.setConsent(consent);
...
AATKit.init(configuration);
}private fun configureAATKit() {
val configuration = AATKitConfiguration(this)
...
val consent: Consent = SimpleConsent(NonIABConsent.OBTAINED)
configuration.consent = consent
...
AATKit.init(configuration)
}Last updated