You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Lisa Seacat DeLuca (JIRA)" <ji...@apache.org> on 2014/09/18 18:42:33 UTC

[jira] [Updated] (CB-7584) Cordova W3C Battery Alignment - chargingchange event

     [ https://issues.apache.org/jira/browse/CB-7584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lisa Seacat DeLuca updated CB-7584:
-----------------------------------
    Description: 
JIRA parent issue: https://issues.apache.org/jira/browse/CB-6065 
Cordova documentation: https://github.com/apache/cordova-plugin-battery-status/blob/master/doc/index.md 
w3c spec: http://www.w3.org/TR/battery-status 

Gap analysis document can be found here: https://docs.google.com/document/d/1mAcjwf39IcIqpIuS-7SzlDxTgk4OebCHae6yfOwnStE/edit?usp=sharing

chargingchange event.  When the battery charging state is updated, the user agent must queue a task which sets the charging attribute's value and fires a simple event named chargingchange at the BatteryManager object.
event handler: onchargingchange


  was:
JIRA parent issue: https://issues.apache.org/jira/browse/CB-6065 
Cordova documentation: https://github.com/apache/cordova-plugin-battery-status/blob/master/doc/index.md 
w3c spec: http://www.w3.org/TR/battery-status 

Gap analysis document can be found here: https://docs.google.com/document/d/1mAcjwf39IcIqpIuS-7SzlDxTgk4OebCHae6yfOwnStE/edit?usp=sharing

The BatteryManager object should have a readonly property called charging.  Charging is a boolean.  The charging 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. 
Multiple Batteries.  charging.  The charging attribute must be set to true if at least one battery's charging state as described above is true. Otherwise, it must be set to false.


> Cordova W3C Battery Alignment - chargingchange event
> ----------------------------------------------------
>
>                 Key: CB-7584
>                 URL: https://issues.apache.org/jira/browse/CB-7584
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Battery Status
>            Reporter: Lisa Seacat DeLuca
>
> JIRA parent issue: https://issues.apache.org/jira/browse/CB-6065 
> Cordova documentation: https://github.com/apache/cordova-plugin-battery-status/blob/master/doc/index.md 
> w3c spec: http://www.w3.org/TR/battery-status 
> Gap analysis document can be found here: https://docs.google.com/document/d/1mAcjwf39IcIqpIuS-7SzlDxTgk4OebCHae6yfOwnStE/edit?usp=sharing
> chargingchange event.  When the battery charging state is updated, the user agent must queue a task which sets the charging attribute's value and fires a simple event named chargingchange at the BatteryManager object.
> event handler: onchargingchange



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)