Re: charging attribute (was: Re: no longer possible to detect battery presence? RE: Battery API in Last Call)

Hi Wayne, All,

On 5.12.2011, at 19.33, ext Carr, Wayne wrote:

>> Wouldn't dropping "full" from the true condition fix this. "Otherwise" will catch
>> the case "neither charging nor discharging". My proposal:
>> 
>> [[
>> 
>> charging of type boolean, readonly
>> 
>> Represents if the system's battery is charging. The attribute must be set to false if
>> the battery is discharging, and set to true, if the battery is charging, the
>> implementation is unable to report the state, or there is no battery attached to
>> the system, or otherwise.
>> 
>> ]]
> 
> That would do it.

I updated the spec accordingly. Let me know if there are concerns with this change.

-Anssi

Received on Wednesday, 7 December 2011 08:01:58 UTC