Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

SSF Activity API


Code Block
SYM_APIssf.registerActivityDetection(periodthrottle, callback);

period throttle (number): Time minimum report period in milliseconds.

callback: Every time period the callback is invoked when the activity occurs.

Whenever activity occurs 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. If additional activity occurs within the period given by the 'throttle', then the callback will be invoked at time: X + throttle (where X is the time of last activity report send).  This prevents flooding the API with activity reports.  Activity is defined as keyboard or mouse interaction anywhere in the OS.

...