Re: Battery Status API asynchronous amendment

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