chargelevel

Syntax:

[int] sysinfo.chargelevel;

Description:

This is a read-only property that returns an integer indicating the current battery level.

The returned value is in the range of 0 to 100 as a percentage of the maximum battery level.

For more general information on power consumption and widgets, see Saving battery time.

Example code:

See the example code in onchargelevel.