Consent Management

Learn how to implement consent management for Flutter.

Usage

Usage of this module is recommended. Learn more about Consent Management.

To get the consent status of a user as a callback function, call the getConsentStatus() method.

The following example gets the consent status:

Tealium.getConsentStatus()
  .then((status) => print('Consent Status: $status')));

To set the consent status of a user, call the setConsentStatus() method.

The following example grants consent:

Tealium.setConsentStatus(ConsentStatus.consented);

To get the consent categories of a user, call the getConsentCategories() method.

The following example gets the consent categories for a user:

Tealium.getConsentCategories()
  .then((categories) =>
      print('Consent Categories: ' + categories.join(","))));

To set the consent categories of a user, call the setConsentCategories() method, passing a list of consent categories.

The following example sets the consent categories:

Tealium.setConsentCategories([ConsentCategories.analytics,
    ConsentCategories.email]);

Was this page helpful?

This page was last updated: January 7, 2023