Difference between revisions of "Timer.delayedCall"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<languages />
 
'''<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>Class</translate>:''' [[Special:MyLanguage/Timer|Timer]]<br/>

Revision as of 09:59, 3 September 2018


Available since: Gideros 2011.6
Class: Timer

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