Hi Eric, good point, I agree the WebAPI documentation has to be updated, as well as the article I wrote about the Battery API
https://developer.mozilla.org/en-US/Apps/Build/gather_and_modify_data/retrieving_battery_status_information#The_EnergyManager and other related docs. I would do it as soon as at least one browser implements the new specification, that is a W3C Last Call Working Draft since August 2014: http://www.w3.org/TR/2014/WD-battery-status-20140828/ Actually I don't know whether other browsers have implemented the new navigator.getBattery() method, I assumed none. Do you think it makes sense to update the documentation now? (However my questions were more about the C++ implementation of the spec in Gecko) Thanks! Francesco <http://www.francesco.iovine.name/> On 12 November 2014 20:39, Eric Shepherd <[email protected]> wrote: > See the Battery Status API documentation on MDN; if this doesn't help, let > me know, so that we can fix the docs! > > https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API > > On Nov 12, 2014, at 2:45 PM, Francesco Iovine <[email protected]> wrote: > > - how do I create a javascript "navigator.getBattery()" interface? > > > > Eric Shepherd > Developer Documentation Lead > Mozilla Developer Network <https://developer.mozilla.org/> > Blog: http://www.bitstampede.com/ > Twitter: http://twitter.com/sheppy > >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
