Idle
Introduction
Example Usage
//setup callback functions for different events
/**
* @properties={typeid:24,uuid:"E6949E1C-AA93-4145-9509-BF10CA66AC02"}
*/
function idle() {
application.output('im idle...');
}
/**
* @properties={typeid:24,uuid:"09584FE2-2B10-420A-B685-A9A988A6261A"}
*/
function active() {
application.output('im active...');
}
/**
* @properties={typeid:24,uuid:"06ACAC5D-4D1C-49BD-B786-3E9496DA3860"}
*/
function hide() {
application.output('window hidden');
}
/**
* @properties={typeid:24,uuid:"1A268EDF-BA18-4E67-A049-6E1305E08D72"}
*/
function show() {
application.output('window shown');
}
//Then call the onIdle method and pass in callback methods to execute when idle or when windows become hidden/active.
plugins.svyIdle.onIdle(idle,active,hide,show,null,5000,true,false,false);
});API
Method Summary
onIdle
Type
Name
Summary
Required
Last updated
Was this helpful?