W3C home > Mailing lists > Public > public-device-apis@w3.org > March 2011

Re: Battery Status Event Spec

From: Robin Berjon <robin@berjon.com>
Date: Thu, 31 Mar 2011 16:51:44 +0200
Cc: Anssi Kostiainen <anssi.kostiainen@nokia.com>, "public-device-apis@w3.org Group WG" <public-device-apis@w3.org>
Message-Id: <941639F8-729C-42EA-B760-96CA80D56E83@berjon.com>
To: "Tran, Dzung D" <dzung.d.tran@intel.com>
On Mar 31, 2011, at 16:24 , Tran, Dzung D wrote:
>> And I can see use cases other than battery meters. For instance, you could listen to timeRemaining to see if there's still enough time to finish the video currently being watched.
> 
> Yes, but in many of these cases you don't need to fire regular intervals, you just get an event then do something like display a message "Your battery level is 20%, you might want to plug in". I don't see use cases that would need regular intervals.

If you have 22 minutes left on your video, knowing that the battery level is at 20% doesn't help you at all  it could mean 10 minutes or two hours. It's also useful to be notified of variations in it since, despite its name, it is just a prediction that it likely to change over time. For instance, a minute ago your computer's best guess was that you had 1h30 of battery left. But now your system's filesystem metadata indexer has kicked in and now you only have 18 minutes of battery left (Mac users will know what I mean).

-- 
Robin Berjon - http://berjon.com/
Received on Thursday, 31 March 2011 14:52:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:18 GMT