ConsentualTracker class
ConsentualTracker Only tracks events if a pre-defined condition is met.
ConsentualTrackers can be used to block events from tracking when the user has not consented to tracking.
- Inheritance
-
- Object
- AbstractTracker
- ConsentualTracker
Constructors
-
ConsentualTracker(AbstractTracker _buildChild(), ValueNotifier<
bool> _condition) - default initialiser
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
-
close(
) → Future< void> -
close
Deallocates the underlying tracker instance and stops all tracking.
override
-
disableGdprContext(
) → Future< void> -
disableGdprContext
Disables GDPR context.
override
-
enableGdprContext(
GDPRContext context) → Future< void> -
enableGdprContext
Enables GDPR context to be sent with every event.
override
-
initialize(
) → Future< void> -
initialize
Initializes the tracker.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setSubject(
Subject subject) → Future< void> -
setSubject
Sets the subject on the platform's tracker instance.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
AbstractEvent event) → Future< void> -
track
Tracks the given
event
parameter by the platform's tracker instance.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited