Enumerations
Name | Values |
| This class exposes no enumerations. |
Constants
Name | Type | Value |
| | This class exposes no constants. |
Events
Definition | Description |
Updated() | Fired when the class has updated values. |
Methods
Definition | Description |
Update() | Tell the class to update values. |
Properties
Name | Type | Default Value | Description |
ChargeTime | Integer | -1 | Time until battery is full. |
Charging | Boolean | False | Returns true if the device is currently charging. |
DischargeTime | Integer | -1 | Time until battery is empty. |
IsSupported | Boolean(Read-Only) | False | True if the user's browser supports the battery API. |
Level | Integer | -1 | Current percentage of battery. |
Examples
There are currently no examples for this class.