Privacy/Reviews/OSIdleAPI: Difference between revisions

Jump to navigation Jump to search
Line 97: Line 97:
|-
|-
| ''In:''  
| ''In:''  
| addIdleObserver()
| addIdleObserver(), e.g. addIdleObserver(idleObserverObject);
| Requested idle time in seconds. Idle callback function. Active callback function.
| idleObserverObject = {time: someIntValInSeconds, onidle: someIdleCallbackFunction; onactive: someActiveCallbackFunction}
| The requested idle time in seconds is the amount of idle time that needs to elapse before the idle observer receives 'idle' notifications. Notifications are idle and active callback functions. The mininum requested idle time in seconds must be 1 second.
| The idleObserverObject is passed as a paramater to function addIdleObserver(). 'someIntValInSeconds' is the requested idle time in seconds that needs to elapse before the idle observer receives 'idle' notifications. 'someIntValInSeconds' must be a minimum of 1 seconds and a maximum of a PRUint32. 'someIdleCallbackFunction' is the front-end developer defined callback function that is to be called when the user is idle for 'someIntValInSeconds'. 'someActiveCallbackFunction' is the front-end developer defined callback function that is to be called when the user transitions from an idle state to an active state. Please see sample test file: http://mxr.mozilla.org/mozilla-central/source/dom/base/test/test_bug715041.xul
|-
|-
| ''In:''  
| ''In:''  
| removeIdleObserver()
| removeIdleObserver(), e.g. removeIdleObserver(idleObserverObject)
| Requested idle time in seconds. Idle callback function. Active callback function.
| idleObserverObject = {time: someIntValInSeconds, onidle: someIdleCallbackFunction; onactive: someActiveCallbackFunction}
| The requested idle time in seconds is the amount of idle time that needs to elapse before the idle observer receives 'idle' notifications. The notifications are the idle and active callback functions. The mininum requested idle time in seconds must be 1 second.
| The idleObserverObject is passed as a paramater to function addIdleObserver(). 'someIntValInSeconds' is the requested idle time in seconds that needs to elapse before the idle observer receives 'idle' notifications. 'someIntValInSeconds' must be a minimum of 1 seconds and a maximum of a PRUint32. 'someIdleCallbackFunction' is the front-end developer defined callback function that is to be called when the user is idle for 'someIntValInSeconds'. 'someActiveCallbackFunction' is the front-end developer defined callback function that is to be called when the user transitions from an idle state to an active state. Please see sample test file: http://mxr.mozilla.org/mozilla-central/source/dom/base/test/test_bug715041.xul
|-
|-
| ''Out:''  
| ''Out:''  
76

edits

Navigation menu