W3C home > Mailing lists > Public > public-device-apis@w3.org > January 2012

Re: Battery API Last Call Comment Status

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Sat, 21 Jan 2012 00:03:45 +0100
Message-ID: <4F19F2D1.4040509@lamouri.fr>
To: "public-device-apis@w3.org" <public-device-apis@w3.org>
On 01/20/2012 09:03 PM, Carr, Wayne wrote:
>> -----Original Message-----
>> From: Mounir Lamouri [mailto:mounir@lamouri.fr]
>> Sent: Friday, January 20, 2012 2:27 AM
>> To: public-device-apis@w3.org
>> Subject: Re: Battery API Last Call Comment Status
>>
>> On 01/19/2012 10:17 PM, Carr, Wayne wrote:
>>> We can close the request to determine if a battery is present.  It would be nice
>> and I think fairly irrelevant for fingerprinting.   The important one was the other
>> comment that was fixed.
>>
>> Why would that be nice?
>
> Someone could want to display battery information if there is a battery present in the device, but not to display if there is no battery or if the device doesn't know.

What use case do you have in mind?

>>> Different topic, but one thing to consider is including a sentence that says the
>> api provides summary information across one or more batteries (since there can
>> be more than one).  Maybe that's obvious and doesn't need to be said.
>>
>> What's the use case for that? Implementations could easily handle multiple
>> batteries. For example, battery.level would take into account that there are more
>> than one battery and will show the combined batteries level.
>
> You may have misunderstood what I wrote.  I suggested adding a clarifying statement that if there is more than one battery in the device, the values represent the combination of batteries.  It seems obvious it should be combined.  The clarifying sentence makes it explicit that implementations should not do something like report only a single battery.

I indeed misunderstood and we definitely agree :)

--
Mounir
Received on Friday, 20 January 2012 23:04:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:52 UTC