sendEvent method

dynamic sendEvent(
  1. Hit event,
  2. double deltaTime
)

Implementation

sendEvent(Hit event, double deltaTime) {
  Flagship.logger(Level.INFO,
      "Send emotion Event after $deltaTime seconds from starting collect");
  if (deltaTime < FSAIDuration30) {
    sendEmotionEvent(event);
  } else if (deltaTime <= FSAIDuration120) {
    sendEmotionEvent(event);
    Flagship.logger(Level.INFO, "Send last emotion event and STOP collect");
    stopCollecting();
    // Start get scoring from remote
    pollingScore = PollingScore(
        visitorId: visitorId, anonymousId: anonymousId, delegate: delegate);
  } else {
    // visitor not scored
  }
}