Skip to content

Monitoring Battery Status

Jonathan Arbogast edited this page Mar 23, 2015 · 1 revision

To get the current battery level, simply use the batteryLevel property on the JotStylusManager.

You can also receive battery level updates by adding an observer for the following notifications through the NSNotificationCenter.

  • JotStylusNotificationBatteryLevelNormal - Sent when the battery level enters the range of 20% - 100% full.
  • JotStylusNotificationBatteryLevelLow - Sent when the battery level enters the range of 10% - 20% full. We recommend displaying a non-modal alert when you receive this notification.
  • JotStylusNotificationBatteryLevelCritical - Sent when the battery level enters the range of 0% - 10% full. We recommend displaying a modal alert when you receive this notification.

Also consider using the Battery Level View Controller which displays the battery level of the currently connected Jot.