Posted when the battery level changes.
- iOS 3.0+
- Mac Catalyst 13.0+
For this notification to be sent, you must set the
battery property to
Notifications for battery level change are sent no more frequently than once per minute. Do not 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