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 3 Next »

Purpose

The application needs to be informed if activity (keyboard or mouse input) has (or has not) occurred in a given period.

SSF Activity API


SYM_API.registerActivityDetection(period, callback);

period (number): Time period in milliseconds.

callback: 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