Global Variable

UIDeviceBatteryStateDidChangeNotification

Posted when battery state changes.

Declaration

const NSNotificationName UIDeviceBatteryStateDidChangeNotification;

Discussion

For this notification to be sent, you must set the batteryMonitoringEnabled property to YES.

You can obtain the battery state by getting the value of the batteryState property.

See Also

Notifications

UIDeviceBatteryLevelDidChangeNotification

Posted when the battery level changes.

UIDeviceOrientationDidChangeNotification

Posted when the orientation of the device changes.

UIDeviceProximityStateDidChangeNotification

Posted when the state of the proximity sensor changes.