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

# batteryLevelDidChangeNotification

A notification that posts when the battery level changes.

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

## Discussion

For this notification to be sent, you must set the [`isBatteryMonitoringEnabled`](/documentation/UIKit/UIDevice/isBatteryMonitoringEnabled) property to <doc://com.apple.documentation/documentation/Swift/true>.

Notifications for battery level change are sent no more frequently than once per minute. Don’t attempt to calculate battery drainage rate or battery time remaining; drainage rate can change frequently depending on built-in applications as well as your application.

You can obtain the battery level by getting the value of the [`batteryLevel`](/documentation/UIKit/UIDevice/batteryLevel) 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)