The AutoStart setting needs to be set to true if you want to timer to automatically start. If half way through the duration you can’t to force a reset then you can set this variable to true and the time will then stop. Should your timer revert back to its original value? You might have noticed that the timer displays the time as it counts and it goes back to 0 every time it restarts. If you want the timer to stop after the first run or if you want it to continue for ever will decide if you set this to true or false.
The repeat option gives you control over if you want the timer to restart after it runs. The timer will restart after 6000 miliseconds. The Duration is the time it takes for the timer start again. It will then run as long as you haven’t set the Start back to false. This means that within your PowerApps code (for example on a click of a button) you can start the timer to run. This will trigger the OnStart event and your OnStart code is run. If you want to start a timer you can set the Start to true. To control the running of your code there are 6 settings that are important Start Unless … As I go through the configuration options you will find the unless option.
This current screen is important! A timer is added as a control on a screen and it will only run when your screen is active. In my example in this post I will simply set a variable, but in my earlier mention project I would refresh or reload all data needed by the current screen. The OnTimerStart, OnTimerEnd and OnSelect are the configurations where you can add your code. At the same time it is also a very useful control. The Timer Control is actually one of the more complicated controls used in PowerApps. I decided to use the timer control for this.
In this case I found that the data updates (done by other applications) were not reflected in my application and I had to write some low code to update the data used by my application.