---
title: didChangeNotification
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uipointerlockstate/didchangenotification
---

# didChangeNotification

A notification that posts when the value of the locked state for a scene changes.

## Declaration

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

## Discussion

Discussion This notification is sent when the value in the isLocked property changes. The userInfo dictionary of the notification contains the sceneUserInfoKey key, which reflects the new value of the isLocked property.

## See Also

### Updating the Lock State

- [sceneUserInfoKey](uikit/uipointerlockstate/sceneuserinfokey.md)
