开发者

iOS custom idle timer [duplicate]

开发者 https://www.devze.com 2023-03-31 07:34 出处:网络
This ques开发者_高级运维tion already has answers here: iPhone: Detecting user inactivity/idle time since last screen touch
This ques开发者_高级运维tion already has answers here: iPhone: Detecting user inactivity/idle time since last screen touch (10 answers) Closed 5 years ago.

In an iOS enterprise app i need to implement an idle timeout. The application's idleTimerDisabled property is set to yes, that's not what I want.

It's a journal type of application for an exhibition, in which the app should jump back to the first page after a specific time. Is there some way that doesn't need me to adjust each touch/gesture callback with a function that resets the timer?


You can override UIApplication::sendEvent to reset the timer, e.g. see the accepted answer here:

iPhone: Detecting user inactivity/idle time since last screen touch

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号