Difference between revisions of "Timer.new"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Timer]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Timer|Timer]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Creates a new '''Timer''' object with the specified delay and repeatCount states.
Creates a new [[Special:MyLanguage/Timer|Timer]] object with the specified delay and repeatCount states.<br />
 
<br /></translate>
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
Timer.new(delay,repeatCount)
+
Timer.new(delay,repeatCount)
 
</syntaxhighlight>
 
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''delay''': (any) <translate>The time interval between timer events in milliseconds.</translate> <br/>
+
=== Parameters ===
'''repeatCount''': <translate>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.</translate> <br/>
+
'''delay''': (any) the time interval between timer events in milliseconds<br/>
 +
'''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}}
 
{{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