WebAPI/BatteryAPI: Difference between revisions

no edit summary
(→‎Device API specification: update note related device api)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="color:red; font-weight: bold; background-color:yellow; padding:0px; margin: 20px; border: red;" cellpadding="0" cellspacing="0" border="1"
|This wiki page is out of date.<br>
The work on Battery API has been moved to the official W3C specification in the DAP Working Group: http://www.w3.org/TR/battery-status/
|}
== Device API specification ==
== Device API specification ==


Line 14: Line 18:
* http://oldworld.fr/mozilla/battery.html
* http://oldworld.fr/mozilla/battery.html
* http://oldworld.fr/mozilla/battery-test.html
* http://oldworld.fr/mozilla/battery-test.html
* [http://robnyman.github.com/battery/ Demo by Robert Nyman]


== Proposed API ==
== Proposed API ==
Line 40: Line 45:
** In that case, we could allow authors to set the low and critical values threshold;
** In that case, we could allow authors to set the low and critical values threshold;
** In that case, not having a battery should be handled differently;
** In that case, not having a battery should be handled differently;
[[Category:Web APIs]]
Confirmed users
1,340

edits