Purpose
The application needs to be informed if activity (keyboard or mouse input) has occurred.
SSF Activity API
ssf.registerActivityDetection(throttle, callback);
throttle (number): minimum report period in milliseconds.
callback: the callback is invoked when the activity occurs.
Every time period the callback will be invoked and pass back a boolean value. The boolean value will be true if activity has occurred in the last period and false if no activity has occurred. Activity is defined as keyboard or mouse interaction anywhere in the OS.
Implementation
Could be implemented using node module: https://github.com/paulcbetts/node-system-idle-time