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...") |
|||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
+ | '''Class:''' [[Timer]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Creates a new '''Timer''' object with the specified delay and repeatCount states. | |
− | Creates a new | + | <syntaxhighlight lang="lua"> |
− | < | + | Timer.new(delay,repeatCount) |
− | + | </syntaxhighlight> | |
− | + | ||
− | </ | + | === Parameters === |
− | '''delay | + | '''delay''': (any) the time interval between timer events in milliseconds<br/> |
− | '''repeatCount | + | '''repeatCount''': 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/> |
+ | |||
+ | {{Timer}} |
Latest revision as of 13:34, 22 November 2023
Available since: Gideros 2011.6
Class: Timer
Description
Creates a new Timer object with the specified delay and repeatCount states.
Timer.new(delay,repeatCount)
Parameters
delay: (any) the time interval between timer events in milliseconds
repeatCount: 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