Check if an application is idle for a time period and lock it

前端 未结 3 1688
长情又很酷
长情又很酷 2020-12-01 03:27

In my project I need an application lock (same as windows lock). If the application is idle for a time period the application should be locked i.e, the login window for the

3条回答
  •  情话喂你
    2020-12-01 03:59

    Set a timeout on load, and every time an "active" action happens (you'll need to hook up to them), reset the timer back to the start.

提交回复
热议问题