convertedObjects method

void convertedObjects({
  1. required String eventName,
  2. required Iterable<String> objectIDs,
  3. DateTime? timestamp,
})

Send a hits conversion event Optional custom timestamp can be provided.

Implementation

void convertedObjects({
  required String eventName,
  required Iterable<String> objectIDs,
  DateTime? timestamp,
}) {
  if (!isEnabled) {
    return;
  }
  if (delegate.queryID == null) {
    tracker.convertedObjects(
      indexName: delegate.indexName,
      eventName: eventName,
      objectIDs: objectIDs,
      timestamp: timestamp,
    );
  } else {
    tracker.convertedObjectsAfterSearch(
      indexName: delegate.indexName,
      eventName: eventName,
      queryID: delegate.queryID!,
      objectIDs: objectIDs,
      timestamp: timestamp,
    );
  }
}