Re: Battery Status Event Spec

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 UTC