The Timer API lets you schedule functions to be executed after a given time.

var Timer = require("FuseJS/Timer");

Timer.create(function() {
    console.log("This will run once, after 3 seconds");
}, 3000, false);

Timer.create(function() {
    console.log("This will run every 10 seconds until forever");
}, 10000, true);


Fuse.Scripting.JavaScript 2.0.0-beta.9

Interface of TimerModule

Inherited from NativeModule

Inherited from Module

GetFile : FileSource uno

Returns the file source that will be watched by the Context for changes in Fuse preview. Override in subclasses and return correct file source to support live updates in Fuse preview.

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces