setMinTimeBetweenSessions method

void setMinTimeBetweenSessions(
  1. int seconds
)

Set the minimum time between sessions. Any app launches that happen within this minimum threshold will be attributed to the current session. Launches that occur after this threshold has been crossed will be counted as a separate session.

Implementation

void setMinTimeBetweenSessions(int seconds) {
  assert(seconds >= 0, "the minimum timeout must be a positive number");
  _methodChannel
      .invokeMethod("setMinTimeBetweenSessions", {'seconds': seconds});
}