Skip to content

Commit

Permalink
Clean up BatteryManager language. (mdn#5256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmedley authored May 25, 2021
1 parent 862eda6 commit 01e79c0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions files/en-us/web/api/batterymanager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@
---
<div>{{APIRef}}{{deprecated_header}}</div>

<p>The <code>BatteryManager</code> interface provides ways to get information about the system's battery charge level.</p>

<p>The {{domxref("navigator.getBattery()")}} method returns a battery promise that is resolved in a <code>BatteryManager</code> interface which you can use to interact with the <a href="/en-US/docs/Web/API/Battery_Status_API">Battery Status API</a>.</p>
<p>The <code>BatteryManager</code> interface of the <a href="/en-US/docs/Web/API/Battery_Status_API">Battery Status API</a> provides information about the system's battery charge level. The {{domxref("navigator.getBattery()")}} method returns a promise that resolves with a <code>BatteryManager</code> interface.</p>

<h2 id="Properties">Properties</h2>

<dl>
<dt>{{domxref("BatteryManager.charging")}} {{ReadOnlyInline}}</dt>
<dd>A Boolean value indicating whether or not the battery is currently being charged.</dd>
<dd>A Boolean value indicating whether the battery is currently being charged.</dd>
<dt>{{domxref("BatteryManager.chargingTime")}} {{ReadOnlyInline}}</dt>
<dd>A number representing the remaining time in seconds until the battery is fully charged, or 0 if the battery is already fully charged.</dd>
<dt>{{domxref("BatteryManager.dischargingTime")}} {{ReadOnlyInline}}</dt>
<dd>A number representing the remaining time in seconds until the battery is completely discharged and the system will suspend.</dd>
<dd>A number representing the remaining time in seconds until the battery is completely discharged and the system suspends.</dd>
<dt>{{domxref("BatteryManager.level")}} {{ReadOnlyInline}}</dt>
<dd>A number representing the system's battery charge level scaled to a value between 0.0 and 1.0.</dd>
</dl>
Expand Down

0 comments on commit 01e79c0

Please sign in to comment.