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