Sunday, June 1, 2008

nsIUpdateTimerManager

new

New page

<breadcrumbs></breadcrumbs>
The <code>nsIUpdateTimerManager</code> 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.

__TOC__
{{InterfaceStatus|nsIUpdateTimerManager|toolkit/mozapps/update/public/nsIUpdateService.idl|unfrozen|Mozilla 1.9|yes}}

Inherits from: {{interface|nsISupports}}

=Method overview=

{| class="standard-table"
|-
| <code>void [[#registerTimer()|registerTimer]](in AString id,
in nsITimerCallback callback,
in unsigned long interval);</code>
|-
|}

=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
);

<h5>Parameters</h5>

;<tt>id</tt>
:An ID used to identify the timer interval; used for persistence.
;<tt>callback</tt>
:An {{interface|nsITimerCallback}} object that is notified when the interval expires.
;<tt>interval</tt>
:The length of time, in seconds, until the timer should fire.

None.

=See also=

* {{interface|nsIUpdate}}
* {{interface|nsIUpdateCheckListener}}
* {{interface|nsIUpdateChecker}}
* {{interface|nsIUpdatePatch}}
* {{interface|nsIApplicationUpdateService}}
* {{interface|nsIUpdateManager}}
* {{interface|nsIUpdatePrompt}}

[[Category:Interfaces]]