How to detect idle time in Corona? How to detect there is no user interaction or event with the device in a particular interval of time?The application what I am developing is based on user events.If the user doesn’t provide any event for few minutes,the screen must be reloaded?Any idea about this with a sample code will be helpful.
Share
Set up some counter which will count the idle time (maybe every second)…
When user touch the screen this timer will be set back to 0 – so when this counter reach some value (for example 60) then reload you page…
This is counter:
Then do some function which will reset idletime value on touch…
Hope it helps 😉