HitsEventTracker class

Wrapper for an EventTracker with associated indexName and queryID

Constructors

HitsEventTracker(EventTracker tracker, EventDataDelegate delegate, {bool isEnabled = true})

Properties

delegate EventDataDelegate
Delegate providing external events data
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Flag that blocks the sending of event packets when set to false
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tracker EventTracker
Underlying EventTracker instance.
getter/setter pair

Methods

clickedObjects({required String eventName, required Iterable<String> objectIDs, Iterable<int>? positions, DateTime? timestamp}) → void
Track a hits click event. Optional custom timestamp can be provided.
convertedObjects({required String eventName, required Iterable<String> objectIDs, DateTime? timestamp}) → void
Send a hits conversion event Optional custom timestamp can be provided.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
viewedObjects({required String eventName, required List<String> objectIDs, DateTime? timestamp}) → void
Send a hits view event Optional custom timestamp can be provided.

Operators

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