B2G OS

MozAlarmsManager

Non-standard
This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.

This API is available on Firefox or Firefox OS for installed or higher privileged applications.

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(Date date, DOMString respectTimezone, optional object data);
  void remove(unsigned long id);
};

Properties

None.

Methods

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

Specification

Specification Status Comment
Web Alarms API Obsoleto Defines the AlarmManager interface.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support Não suportado Não suportado Não suportado Não suportado Não suportado
Feature Android Firefox OS Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Não suportado 1.0 Não suportado Não suportado Não suportado Não suportado

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 unprefix the API yet.

See also

Etiquetas do documento e colaboradores

Colaboradores desta página: chrisdavidmills, teoli
Última atualização por: chrisdavidmills,