---
title: NSProcessInfoPowerStateDidChange
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsnotification/name-swift.struct/nsprocessinfopowerstatedidchange
---

# NSProcessInfoPowerStateDidChange

Posts when the power state of a device changes.

## Declaration

```swift
static let NSProcessInfoPowerStateDidChange: NSNotification.Name
```

## Discussion

Discussion After your observer receives this notification, query the isLowPowerModeEnabled property to determine the current power state of the device. If Low Power Mode is active, take appropriate steps to reduce activity in your app. Otherwise, your app can resume normal operations. The notification object is a ProcessInfo instance.

## See Also

### Related Documentation

- [addObserver(_:selector:name:object:)](foundation/notificationcenter/addobserver(_:selector:name:object:).md)
- [isLowPowerModeEnabled](foundation/processinfo/islowpowermodeenabled.md)
- [NotificationCenter](foundation/notificationcenter.md)

### Working with notifications

- [thermalStateDidChangeNotification](foundation/processinfo/thermalstatedidchangenotification.md)
