clickedObjects method
void
clickedObjects({
- required String indexName,
- required Iterable<
String> objectIDs, - required String eventName,
- DateTime? timestamp,
override
Track a hits click event.
Optional custom timestamp
can be provided.
Implementation
@override
void clickedObjects({
required String indexName,
required Iterable<String> objectIDs,
required String eventName,
DateTime? timestamp,
}) {
final events = objectIDs
.slices(_maxObjectIDsPerEvent)
.map(
(objectIDs) => Event.clickHits(
eventName,
indexName,
userToken,
objectIDs,
timestamp: timestamp,
),
)
.toList();
_send(events);
}