Contents

powerStateDidChange

An identifier for a message about a power state change.

Declaration

static var powerStateDidChange: NotificationCenter.BaseMessageIdentifier<ProcessInfo.PowerStateDidChangeMessage> { get }

Discussion

Use this identifier with NotificationCenter’s addObserver(of:for:using:) or messages(of:for:bufferSize:) methods to observe messages of type ProcessInfo.PowerStateDidChangeMessage.

See Also

Identifying process info messages