Difference between revisions of "Timer.new"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/Timer|Timer]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate><br /> | <translate><br /> | ||
− | Creates a new | + | Creates a new `Timer` object with the specified delay and repeatCount states.<br /> |
<br /></translate> | <br /></translate> | ||
<source lang="lua"> | <source lang="lua"> |
Revision as of 09:30, 24 August 2018
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: (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.