Type Property 型プロパティ

NSProcessInfoPowerStateDidChange

Posts when the power state of a device changes.

Declaration 宣言

static let NSProcessInfoPowerStateDidChange: NSNotification.Name

Discussion 議論

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.

See Also 参照

Foundation ファウンデーション

Related Documentation 関連文書