Timer.delayedCall

From GiderosMobile
Revision as of 22:37, 24 August 2024 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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