app.scheduleTask(stringToExecute,delay,repeat)
Description
Schedules the specified JavaScript for delayed execution.
Parameters
stringToExecute A string containing JavaScript to be executed.
delay A number of milliseconds to wait before executing the JavaScript. A floating-point value.
repeat When true, execute the script repeatedly, with the specified delay between each execution. When false the script is executed only once.
Returns
Integer, a unique identifier for this task, which can be used to cancel it with app.cancelTask().