convertedObjects method

  1. @override
void convertedObjects({
  1. required String indexName,
  2. required String eventName,
  3. required Iterable<String> objectIDs,
  4. 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);
}