Timer.delayedCall

From GiderosMobile
Revision as of 13:56, 23 August 2018 by Hgy29 (talk | contribs)

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