Function createIdleListener
- createIdleListener(callback, timeout?, immediate?): {
getIdleCount: (() => number);
getVisibleCount: (() => number);
restartDetection: (() => void);
startDetection: (() => void);
stopDetection: (() => void);
} Parameters
- callback: any
Optional
timeout: number = 60Optional
immediate: boolean = true
Returns {
getIdleCount: (() => number);
getVisibleCount: (() => number);
restartDetection: (() => void);
startDetection: (() => void);
stopDetection: (() => void);
}
getIdleCount: (() => number)
getVisibleCount: (() => number)
restartDetection: (() => void)
startDetection: (() => void)
stopDetection: (() => void)
创建一个空闲监听器,监测用户的活动状态。