Type Property

batteryStateDidChangeNotification

Posted when battery state changes.

Declaration

class let batteryStateDidChangeNotification: NSNotification.Name

Discussion

For this notification to be sent, you must set the isBatteryMonitoringEnabled property to true.

You can obtain the battery state by getting the value of the batteryState property.

See Also

Notifications

class let orientationDidChangeNotification: NSNotification.Name

Posted when the orientation of the device changes.

class let proximityStateDidChangeNotification: NSNotification.Name

Posted when the state of the proximity sensor changes.