blob: fde010c8bd433348b4a1fbefecd9a1b8a5f7cef2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
---
title: MozAlarmsManager
slug: Archive/B2G_OS/API/MozAlarmsManager
tags:
- API
- B2G
- Firefox OS
- NeedsTranslation
- Non-standard
- Reference
- TopicStub
- WebAPI
- alarm
translation_of: Archive/B2G_OS/API/MozAlarmsManager
---
<p>{{APIRef("Firefox OS")}}</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(Date 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 <code>AlarmManager</code> interface.</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 unprefix the API yet.</p>
<h2 id="See_also">See also</h2>
<ul>
<li>{{domxref("navigator.mozAlarms")}}</li>
</ul>
|