iOS Question Reset Timer?

stingrae

Member
Licensed User
Longtime User
Hi,

If I have a timer which set to 30 seconds (for example) ... which refreshes the screen. What happens is that the user is in the middle of doing something and the timer will trigger and the screen refreshes.

What we want to do is put code on each button so that the timer is set back to be 30 seconds of in-activity before being refreshed.

Is there a way to reset the Time back to 30 seconds? I've tried the code below on a button, but it has no effect ... the timer keeps firing every 30 seconds.

Does that make sense? If so, thanks in advance.

B4X:
    tmrBusiness.Enabled = False
    tmrBusiness.Interval = 30000
    tmrBusiness.Enabled = True
 
Top