NSProcessInfoThermalStateDidChangeNotification
Posts when the thermal state of the system changes.
Availability 有効性
Technology
const NSNotificationName
NSProcessInfoPowerStateDidChangeNotification;
After your observer receives this notification, query the low
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 an NSProcess
instance.
NSProcessInfoThermalStateDidChangeNotification
- addObserver:selector:name:object:
lowPowerModeEnabled
NSNotificationCenter