Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS custom idle timer [duplicate]

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?

like image 340
cboe Avatar asked Aug 29 '11 16:08

cboe


1 Answers

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

like image 115
SVD Avatar answered Nov 03 '22 20:11

SVD