AppconsentTv class

AppconsentTv is the entry point to interract with our CMP.

You first configure an instance of it calling AppconsentTv.setup. Then use presentNotice to display the CMP UI if needed.

Constructors

AppconsentTv()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

checkForUpdate Future<bool>
Returns trueif an update to the Notice and consents is needed.
no setter
consentGiven Future<bool>
Returns true if user has already saved their preferences.
no setter
geolocationConsentGiven Future<bool>
Returns true if user gave consent to Geolocation purpose.
no setter
isSubjectToGDPR Future<bool>
Returns true if user is subject to GDPR. It depends on forceApplyGDPR and phone's locale.
no setter

Static Methods

clearConsent() Future<void>
Clears user consents preferences.
consentableAllowed(int iabId, ConsentableType type) Future<bool>
Returns true if consentable of ConsentableType type with ID ìabId is ALLOWED.
presentNotice(bool force) Future<void>
Displays the CMP Notice if needed.
setup(String appKey, bool forceApplyGDPR, bool forceATT) Future<void>
Setup the AppConsent CMP.