Type Property

NSProcessInfoPowerStateDidChange

Posted when the power state (Low Power Mode is enabled or disabled) of an iOS device changes.

Declaration

static let NSProcessInfoPowerStateDidChange: NSNotification.Name

Discussion

Once the notification is posted, query the isLowPowerModeEnabled property to determine the current power state of the device. If Low Power Mode is active, then your app can take appropriate steps to reduce activity. Otherwise, it can resume normal operations.

The notification object is an NSProcessInfo instance.

See Also

Notifications

class let thermalStateDidChangeNotification: NSNotification.Name

Posted when the thermal state of the system changes.