diff --git a/files/en-us/web/api/navigator/getbattery/index.html b/files/en-us/web/api/navigator/getbattery/index.html index 50a8c4fd521dd97..6f6032a41a7ba89 100644 --- a/files/en-us/web/api/navigator/getbattery/index.html +++ b/files/en-us/web/api/navigator/getbattery/index.html @@ -2,21 +2,21 @@ title: Navigator.getBattery() slug: Web/API/Navigator/getBattery tags: -- API -- Battery API -- Device API -- Method -- Navigator -- Reference -- getBattery + - API + - Battery API + - Device API + - Method + - Navigator + - Reference + - getBattery --- -
The getBattery()
method provides information about the
system's battery. It returns a battery promise, which is resolved in a
{{domxref("BatteryManager")}} object providing also some new events you can handle to
monitor the battery status. This implements the Battery Status API; see that
+ href="/en-US/docs/Web/API/Battery_Status_API">Battery Status API; see that
documentation for additional details, a guide to using the API, and sample code.
Feature-Policy
{{HTTPHeader("Feature-Policy/battery", "battery")}}
featuretrue
if a call to Navigator.share()
would succeed.