iBattery is a native extension for Adobe AIR that provides access to the battery life and information on an iOS device. The extension allows you to check the following battery state: UNKNOWN
(currently unplugged from recharge), UNPLUGGED
(currently charging), Â CHARGING
and FULL
.
Sample
public function getBatteryLife() :Number public function getBatteryState() :int