Developer   API   Core & System   Timer

Timer(native)

Generates recurring events in an application.

Example

// Just one scheduled execution: var once = new Timer(100, false); // interval make no sense here once.start(500); // dealyed start one.onTick = function(sender) { } // each 500ms, repeats 3times only: var threeTimes = new Timer(500, 3);

Methods

  • dispose() : Timer
    Stops and disposes timer object.
  • start([delay]) : Timer
    Starts this timer.
  • stop() : Timer
    Stops this timer. Stopped timer is still valid and can be used later. To destruct timer object you have to call dispose() method.
  • this(interval [, repeatOrTimes]) : Timer
    Constructs timer object.
API Navigation
Skip Navigation Links.
Expand <span>User Interface</span> User Interface
Collapse <span>Core & System</span> Core & System
System
Object
Integer
Float
String
Date
Math
Array
RegExp
Global
Function
Timer
Expand <span>Graphics</span> Graphics
Expand <span>Files and Databases</span> Files and Databases
Expand <span>Crypto</span> Crypto
Expand <span>Native User Interface</span> Native User Interface
Expand <span>Net</span> Net
Expand <span>Media</span> Media
Expand <span>Sensor</span> Sensor
Expand <span>Game Development</span> Game Development