public enum DesktopPowerEventKind What happened to the computer's power or the user's session.
Remarks
This set is open: a minor release may add values, so ignore unknown ones.
Values
StateChanged
StateChanged = 0 The state changed, such as from mains power to battery; the watch also reports the current state first with this kind.
Suspending
Suspending = 1 The computer is about to sleep or hibernate. The application gets little or no time, and Runic does not delay the sleep: save what must not be lost as it changes, and treat this as a hint, such as to close network connections.
Resumed
Resumed = 2 The computer woke up from sleep or hibernation: refresh what may be stale, such as network connections.
Locked
Locked = 3 The user's session was locked.
Unlocked
Unlocked = 4 The user's session was unlocked.