Type Property

UIDeviceProximityStateDidChange

Posted when the state of the proximity sensor changes.

Declaration

static let UIDeviceProximityStateDidChange: NSNotification.Name

Discussion

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

See Also

Notifications

static let UIDeviceOrientationDidChange: NSNotification.Name

Posted when the orientation of the device changes.