pageleave method

void pageleave(
  1. PageInfo pageInfo
)

Implementation

void pageleave(PageInfo pageInfo) {
  if (!AutoTrackConfigManager.instance.autoTrackEnable) {
    return;
  }
  if (!AutoTrackConfigManager.instance.pageLeaveEnable) {
    return;
  }

  Map<String, dynamic> params = _appendPageInfo(Map(), pageInfo);
  params['\$page_duration'] = pageInfo.timer.duration.inMilliseconds;
  _TrackPlugin.pageleave(params);
  RangersApplogLogger.getInstance().debug('track pageleave => $params');
}