aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/archive/b2g_os/api/mozalarmsmanager/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/archive/b2g_os/api/mozalarmsmanager/index.html')
-rw-r--r--files/pt-br/archive/b2g_os/api/mozalarmsmanager/index.html127
1 files changed, 127 insertions, 0 deletions
diff --git a/files/pt-br/archive/b2g_os/api/mozalarmsmanager/index.html b/files/pt-br/archive/b2g_os/api/mozalarmsmanager/index.html
new file mode 100644
index 0000000000..fde010c8bd
--- /dev/null
+++ b/files/pt-br/archive/b2g_os/api/mozalarmsmanager/index.html
@@ -0,0 +1,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>