Global Variable

UIDeviceProximityStateDidChangeNotification

Posted when the state of the proximity sensor changes.

Declaration

const NSNotificationName UIDeviceProximityStateDidChangeNotification;

Discussion

You can obtain the proximity state by getting the value of the proximityState property.

See Also

Notifications

UIDeviceBatteryLevelDidChangeNotification

Posted when the battery level changes.

UIDeviceBatteryStateDidChangeNotification

Posted when battery state changes.

UIDeviceOrientationDidChangeNotification

Posted when the orientation of the device changes.