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.

Usage

To define if the user has given or withheld consent for the collection and use of personal data (used for non-IAB partners) pass SimpleConsent class as the consent parameter, and use NonIABConsent value as:

  • obtained if the user has given the consent.

  • withheld if the user has declined.

If Simple Consent is used, it will automatically read the IAB Consent String stored (by third-party CMP) in SharedPreferences (if available).

await _aatkitFlutterPlugin.initAATKit(
  AATKitConfiguration(
    consent: SimpleConsent(NonIABConsent.obtained),
  ),
);

Last updated