Simple Consent

Handle consent using AATKit simple consent

Introduction

Nowadays, using a Simple Consent management is no longer recommended. Please consider using an industry standard consent management such as the IAB Transparency & Consent Framework and connecting it via Managed or Vendor Consent.

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