---
title: batteryStateDidChangeNotification
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uidevice/batterystatedidchangenotification
---

# batteryStateDidChangeNotification

A notification that posts when battery state changes.

## Declaration

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

## Mentioned in

Processing queued notifications

## Discussion

Discussion For this notification to be sent, you must set the isBatteryMonitoringEnabled property to true. You can obtain the battery state by getting the value of the batteryState property.

## See Also

### Managing notifications

- [batteryLevelDidChangeNotification](uikit/uidevice/batteryleveldidchangenotification.md)
- [orientationDidChangeNotification](uikit/uidevice/orientationdidchangenotification.md)
- [proximityStateDidChangeNotification](uikit/uidevice/proximitystatedidchangenotification.md)
