ConsentManager class

The Google Mobile Ads SDK provides the User Messaging Platform (Google's IAB Certified consent management platform) as one solution to capture consent for users in GDPR impacted countries. This is an example and you can choose another consent management platform to capture consent.

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>
Helper variable to determine if the app can request ads.
gatherConsent(OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) → void
Helper method to call the Mobile Ads SDK to request consent information and load/show a consent form if necessary.
isPrivacyOptionsRequired() Future<bool>
Helper variable to determine if the privacy options form is required.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showPrivacyOptionsForm(OnConsentFormDismissedListener onConsentFormDismissedListener) → void
Helper method to call the Mobile Ads SDK method to show the privacy options form.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ConsentManager
final