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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software