Re: [battery] Alternative design proposal (was: addEventListener side effects, ordering & boundary crossing ...)

Hi,

On 14.9.2011, at 17.20, ext Josh Soref wrote:

> Anssi: of note, battery percentages can vary wildly if someone is amusing and swaps battery sources, a system can easily go from 100% charged to 50% charged (insert an empty battery), or from 99% charged to 33% charged (insert an empty high capacity battery). For more fun, it could go from 40% charged (kinda low), to 15% charged (insert an empty high capacity battery while trying to give more power to the system). In each of these cases, the actual amount of time remaining for the system hasn't changed, but you're going to cause any application listening to a percentage to panic.

This use case justifies the existence of battery{low|critical|ok} events.

-Anssi

Received on Thursday, 15 September 2011 07:54:05 UTC