MozAlarmsManager

  • Revision slug: DOM/MozAlarmsManager
  • Revision title: MozAlarmsManager
  • Revision id: 374183
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

{{ domref() }}

{{ non-standard_header() }}

{{ B2GOnlyHeader2('installed') }}

Summary

The MozAlarmsManager API allows to schedule notifications or applications to be started at a specific time.

Interface overview

interface MozAlarmsManager
{
  DOMRequest getAll();
  DOMRequest add(object date, DOMString respectTimezone, optional object data);
  void remove(unsigned long id);
};

Properties

None.

Methods

{{ domxref("MozAlarmsManager.getAll()") }}
Gets the list of all alarms currently scheduled.
{{ domxref("MozAlarmsManager.add()") }}
Allows to schedule a new alarm.
{{ domxref("MozAlarmsManager.remove()") }}
Allows to remove an existing alarm.

Specification

Specification Status Comment
{{ SpecName('Alarm API', '#interface-alarmmanager') }} {{ Spec2('Alarm API') }} Defines the extention for the {{domxref("window.navigator","navigator")}} object.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatNo()}} {{CompatNo()}} {{CompatNo()}} {{CompatNo()}} {{CompatNo()}}
Feature Android Firefox OS Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatNo()}} 1.0 {{CompatNo()}} {{CompatNo()}} {{CompatNo()}} {{CompatNo()}}

Gecko implementation note

This API is currently available on Firefox OS only for any installed applications. The current specification for this API is not considered stable enough to unprefixed the API yet.

See also

  • {{domxref("window.navigator.mozAlarms","navigator.mozAlarms")}}

Revision Source

<p>{{ domref() }}</p>
<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('installed') }}</p>
<h2 id="Summary">Summary</h2>
<p>The <code>MozAlarmsManager</code> API allows to schedule notifications or applications to be started at a specific time.</p>
<h2 id="Interface_overview">Interface overview</h2>
<pre>
interface MozAlarmsManager
{
  DOMRequest getAll();
  DOMRequest add(object date, DOMString respectTimezone, optional object data);
  void remove(unsigned long id);
};</pre>
<h2 id="Properties">Properties</h2>
<p>None.</p>
<h2 id="Methods">Methods</h2>
<dl>
  <dt>
    {{ domxref("MozAlarmsManager.getAll()") }}</dt>
  <dd>
    Gets the list of all alarms currently scheduled.</dd>
  <dt>
    {{ domxref("MozAlarmsManager.add()") }}</dt>
  <dd>
    Allows to schedule a new alarm.</dd>
  <dt>
    {{ domxref("MozAlarmsManager.remove()") }}</dt>
  <dd>
    Allows to remove an existing alarm.</dd>
</dl>
<h2 id="Specification">Specification</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
    <tr>
      <td>{{ SpecName('Alarm API', '#interface-alarmmanager') }}</td>
      <td>{{ Spec2('Alarm API') }}</td>
      <td>Defines the extention for the {{domxref("window.navigator","navigator")}} object.</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari (WebKit)</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatNo()}}</td>
        <td>{{CompatNo()}}</td>
        <td>{{CompatNo()}}</td>
        <td>{{CompatNo()}}</td>
        <td>{{CompatNo()}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox OS</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatNo()}}</td>
        <td>1.0</td>
        <td>{{CompatNo()}}</td>
        <td>{{CompatNo()}}</td>
        <td>{{CompatNo()}}</td>
        <td>{{CompatNo()}}</td>
      </tr>
    </tbody>
  </table>
</div>
<h3 id="Gecko_implementation_note">Gecko implementation note</h3>
<p>This API is currently available on Firefox OS only for any installed applications. The current specification for this API is not considered stable enough to unprefixed the API yet.</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("window.navigator.mozAlarms","navigator.mozAlarms")}}</li>
</ul>
Revert to this revision