This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

level

Summary

Represents the current battery level scaled from 0 to 1.0.

Property of apis/battery_status/BatteryManagerapis/battery_status/BatteryManager

Syntax

Note: This property is read-only.

var result = battery.level;

Return Value

Returns an object of type doubledouble