<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDevice/proximityStateDidChangeNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIDeviceProximityStateDidChangeNotification"
  },
  "title" : "proximityStateDidChangeNotification"
}
-->

# proximityStateDidChangeNotification

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

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

## Discussion

You can obtain the proximity state by getting the value of the [`proximityState`](/documentation/UIKit/UIDevice/proximityState) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)