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

  • OBTAINED if the user has given consent.

  • WITHHELD if the user has declined.

  • UNKNOWN if 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);
}

Last updated