onEnterToForeground method

void onEnterToForeground()

Implementation

void onEnterToForeground() {
  if (_enterToBackgroundTimeSenond != null) {
    _isPause = false;
    var now = DateTime
        .now()
        .millisecondsSinceEpoch;
    var toBackgroundTime = now -
        _enterToBackgroundTimeSenond!;
    NNUtil.log("心跳计时继续 ${_inAppTimeSecond} 离开app时间${_enterToBackgroundTimeSenond} 当前时间${now} ${toBackgroundTime}");
    if (toBackgroundTime > _sendAppStartTimeRound) {
      TrackEventUtil.instance.sendAppStartEvent(true);
    }
  }
}