collectEmotionsAIEvents method

dynamic collectEmotionsAIEvents(
  1. String screenName
)

Implementation

collectEmotionsAIEvents(String screenName) {
  sessionDuration = DateTime.now();
  if (Flagship.sharedInstance().eaiCollectEnabled == true) {
    if (eaiVisitorScored == true) {
      Flagship.logger(Level.INFO,
          "The visitor $visitorId is already collected and scored");
    } else {
      this._visitorDelegate.collectEmotionsAIEvents(screenName);
    }
  } else {
    Flagship.logger(Level.INFO, "The Emotion AI feature is not activated ");
  }
}