The Alarm API allows applications to schedule actions to be run in the future. For example, some applications like alarm-clock, calendar or auto-update might need to utilize the Alarm API to trigger particular device behaviors at specified time points.
The add method is used to retrieve a list of pending alarms.
The MozAlarmsManager API allows to schedule notifications or applications to be started at a specific time.
The getAll method is used to retrieve a list of pending alarms.
The remove method is used to retrieve a list of pending alarms.
Returns a MozAlarmsManager object you can use to schedule notifications or applications to be started at a specific time.