The battery charge level for the device.
- iOS 3.0+
- Mac Catalyst 13.0+
Battery level ranges from 0.0 (fully discharged) to 1.0 (100% charged). Before accessing this property, ensure that battery monitoring is enabled.
If battery monitoring is not enabled, battery state is
UIDevice and the value of this property is –1.0.