---
title: proximityStateDidChangeNotification
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uidevice/proximitystatedidchangenotification
---

# proximityStateDidChangeNotification

A notification that posts when the state of the proximity sensor changes.

## Declaration

```swift
nonisolated class let proximityStateDidChangeNotification: NSNotification.Name
```

## Mentioned in

Processing queued notifications

## Discussion

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

## See Also

### Managing notifications

- [batteryLevelDidChangeNotification](uikit/uidevice/batteryleveldidchangenotification.md)
- [batteryStateDidChangeNotification](uikit/uidevice/batterystatedidchangenotification.md)
- [orientationDidChangeNotification](uikit/uidevice/orientationdidchangenotification.md)
