ConsentManager class

Helper service for Google User Messaging Platform (UMP) GDPR / CPRA Consent.

Ensures compliance with Google Play and EU User Consent Policies.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRequestAds() → Future<bool>
Checks if ads can be requested based on current consent status.
isPrivacyOptionsRequired() → Future<bool>
Checks if privacy options (consent revocation / update) are required for this user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestConsent({ConsentDebugSettings? debugSettings}) → Future<ConsentResult>
Requests consent information and shows the consent form if required.
resetConsent() → Future<void>
Resets consent state (useful for testing GDPR consent flows in debug mode).
showPrivacyOptionsForm() → Future<FormError?>
Shows the Privacy Options Form (required for EEA/UK user consent revocation).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance → ConsentManager
final