Mozilla.com

  1. Mozilla Developer Center
  2. Main Page
  3. nsIUpdateTimerManager
Table of contents
  1. 1. Method overview
  2. 2. Methods
    1. 2.1. registerTimer()
          1. 2.1.1.1.1. Parameters
  3. 3. See also

nsIUpdateTimerManager

Table of contents
  1. 1. Method overview
  2. 2. Methods
    1. 2.1. registerTimer()
          1. 2.1.1.1.1. Parameters
  3. 3. See also

The nsIUpdateTimerManager interface provides a global application service that provides support for long-duration timers (on the order of many days, weeks, or even months). These timers are used to schedule update checks in the future, for example.


nsIUpdateTimerManager is defined in toolkit/mozapps/update/public/nsIUpdateService.idl . It is scriptable and unfrozen (hasn't changed since Mozilla 1.9) .

Inherits from: nsISupports

Method overview

void registerTimer(in AString id,
                    in nsITimerCallback callback,
                    in unsigned long interval);

Methods

registerTimer()

Presents a user interface that checks for and displays the available updates.

 void registerTimer(
   in AString id,
   in nsITimerCallback callback,
   in unsigned long interval
 );
Parameters
id
An ID used to identify the timer interval; used for persistence.
callback
An nsITimerCallback object that is notified when the interval expires.
interval
The length of time, in seconds, until the timer should fire.

None.

Page last modified 20:02, 19 Mar 2008 by Sheppy

Files (0)