Difference between revisions of "Timer.new"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Creates a new `Timer` object with the specified delay and repeatCount states.<br /> <br /> <sou...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= Timer.new(delayrepeatCount,)
+
Timer.new(delay,repeatCount)
 
</source>
 
</source>
'''delay:''' (any) The time interval between timer events in milliseconds. ''''''<br/>
+
'''delay''': (any) The time interval between timer events in milliseconds. ''''''<br/>
'''repeatCount:''' (default = 0) The number of repetitions. A value of 0 runs the timer infinitely. If nonzero, the timer runs the specified number of times and then stops. ''''''<br/>
+
'''repeatCount''': (default = 0) The number of repetitions. A value of 0 runs the timer infinitely. If nonzero, the timer runs the specified number of times and then stops. ''''''<br/>

Revision as of 11:20, 23 August 2018

Available since: Gideros 2011.6

Description


Creates a new `Timer` object with the specified delay and repeatCount states.

 Timer.new(delay,repeatCount)

'delay: (any) The time interval between timer events in milliseconds. '
'repeatCount: (default = 0) The number of repetitions. A value of 0 runs the timer infinitely. If nonzero, the timer runs the specified number of times and then stops. '