---
title: isBatteryMonitoringEnabled
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidevice/isbatterymonitoringenabled
---

# isBatteryMonitoringEnabled

A Boolean value that indicates whether battery monitoring is enabled.

## Declaration

```swift
var isBatteryMonitoringEnabled: Bool { get set }
```

## Discussion

Discussion Enable battery monitoring if your app needs to be notified of changes to the battery state, or if you want to check the battery charge level. The default value of this property is false, which: Disables the posting of battery-related notifications Disables the ability to read battery charge level and battery state

## See Also

### Related Documentation

- [batteryLevelDidChangeNotification](uikit/uidevice/batteryleveldidchangenotification.md)
- [batteryStateDidChangeNotification](uikit/uidevice/batterystatedidchangenotification.md)

### Getting the device battery state

- [batteryLevel](uikit/uidevice/batterylevel.md)
- [batteryState](uikit/uidevice/batterystate-swift.property.md)
- [UIDevice.BatteryState](uikit/uidevice/batterystate-swift.enum.md)
