LRConsent class
Google Ads consent state, normally sourced from your Consent Management Platform.
Set it with linkrunner.setConsent(...) before init, and call it again whenever
your CMP state changes. Defaults to all-ConsentStatus.UNKNOWN, which is reported
honestly rather than assumed permissive.
Constructors
- LRConsent({ConsentStatus isEEA = ConsentStatus.UNKNOWN, ConsentStatus hasConsentForDataUsage = ConsentStatus.UNKNOWN, ConsentStatus hasConsentForAdsPersonalization = ConsentStatus.UNKNOWN})
-
const
Properties
- hasConsentForAdsPersonalization → ConsentStatus
-
Consent to use the data for ad personalization.
Sent as
ad_personalization.final - hasConsentForDataUsage → ConsentStatus
-
Consent to send user data to Google for advertising purposes.
Sent as
ad_user_data.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isEEA → ConsentStatus
-
Whether the user is in the European Economic Area, UK or Switzerland.
final
- 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
-
toJSON(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited