W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2014

Re: Battery Status API asynchronous amendment

From: Marcos Caceres <w3c@marcosc.com>
Date: Thu, 1 May 2014 11:17:35 -0400
To: Mounir Lamouri <mounir@lamouri.fr>, Tim Volodine <timvolodine@google.com>, public-device-apis@w3.org
Message-ID: <etPan.5362658f.71f32454.aa59@Marcoss-MacBook-Pro.local>

On May 1, 2014 at 4:53:07 AM, Mounir Lamouri (mounir@lamouri.fr) wrote:
> > If a device has two batteries, I do not think it should be exposed  
> as
> such by the API. If you have two batteries, it is simpler for the  
> developer to see this as one battery. Otherwise, the developers  
> would
> have to do a lot of work to guess how much battery power is left
> depending on the internals of the system (is the system using  
> both
> batteries at the same time, one after each other, etc.).
>  
> Though, if it happens that developers would like more details,  
> navigator.getBatteries() could return a detailed version  
> while
> navigator.getBattery() would return merged data. WDYT?


Sounds good. 
Received on Thursday, 1 May 2014 15:18:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:33:07 UTC