Titanium Studio get battery Level

Get the battery Level in the apps

Ti.Platform.batteryMonitoring = true;  
Ti.Platform.addEventListener('battery',UpdateBattery);

if(e.level !== undefined)  
{
    thisClass.batteryLevel = e.level;
}

*this code is only work on Android platform Curennly ,this code is not work on IOS a known bug .