NSProcessInfoPowerStateDidChange
Posts when the power state of a device changes.
Declaration
static let NSProcessInfoPowerStateDidChange: NSNotification.NameDiscussion
After your observer receives this notification, query the isLowPowerModeEnabled property to determine the current power state of the device. If Low Power Mode is active, take appropriate steps to reduce activity in your app. Otherwise, your app can resume normal operations.
The notification object is a ProcessInfo instance.