Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6065 alignment with W3C Battery API
  3. CB-7585

Cordova W3C Battery Alignment - chargingTime property

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    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

      The BatteryManager object should have a readonly property called chargingTime. The chargingTime attribute must be set to 0, if the battery is full or there is no battery attached to the system, and to the value positive Infinity if the battery is discharging, the implementation is unable to report the remaining charging time, or otherwise.
      Multiple Batteries. chargingTime. The chargingTime attribute can be set to the maximum charging time of the individual batteries if charging in parallel, and to the sum of the individual charging times if charging serially.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ldeluca Lisa Seacat DeLuca

            Dates

              Created:
              Updated:

              Slack

                Issue deployment