string getBatteryState()

This function can be used to return the battery state. Possible values are as follows:

Charging
Discharging
Full
Not Charging
Unknown

Return

The state of the battery as a string (see above).