Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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

  • No labels