Difference between revisions of "Timer.delayedCall"

From GiderosMobile
Line 9: Line 9:
 
(Timer) = Timer.delayedCall(delay,func,data)
 
(Timer) = Timer.delayedCall(delay,func,data)
 
</source>
 
</source>
'''delay''': (number) Delay in miliseconds before the function is called ''''''<br/>
+
=== Parameters ===
'''func''': (function) Function to call ''''''<br/>
+
'''delay''': (number) Delay in miliseconds before the function is called <br/>
 +
'''func''': (function) Function to call <br/>
 
'''data''': (any) An optional data parameter that is passed as a first argument to the function '''optional'''<br/>
 
'''data''': (any) An optional data parameter that is passed as a first argument to the function '''optional'''<br/>
 +
=== Return values ===
 
'''Returns''' (Timer) The `Timer` object<br/>
 
'''Returns''' (Timer) The `Timer` object<br/>

Revision as of 10:46, 23 August 2018

Available since: Gideros 2011.6

Description


Provides a simple way to call a function after a set amount of time. This function returns the
`Timer` object created inside.

(Timer) = Timer.delayedCall(delay,func,data)

Parameters

delay: (number) Delay in miliseconds before the function is called
func: (function) Function to call
data: (any) An optional data parameter that is passed as a first argument to the function optional

Return values

Returns (Timer) The `Timer` object