setDetectionInterval method

void setDetectionInterval(
  1. int intervalInSeconds
)

Sets the interval, in seconds, used to determine when the system is in an idle state for onStateChanged events. The default interval is 60 seconds. intervalInSeconds Threshold, in seconds, used to determine when the system is in an idle state.

Implementation

void setDetectionInterval(int intervalInSeconds) {
  $js.chrome.idle.setDetectionInterval(intervalInSeconds);
}