Global Variable グローバル変数

NSProcessInfoPowerStateDidChangeNotification

Posts when the power state of a device changes.

Declaration 宣言

const NSNotificationName NSProcessInfoPowerStateDidChangeNotification;

Discussion 議論

After your observer receives this notification, query the lowPowerModeEnabled 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 NSProcessInfo instance.

See Also 参照

Notifications 通知

Related Documentation 関連文書