Screen Lock / Unlock events (#12714)
* initial lock-screen and unlock-screen event implementation for macOS * Implementation of lock-screen and unlock-screen on windows
This commit is contained in:
parent
c1381ac598
commit
338a816ffd
7 changed files with 187 additions and 0 deletions
|
@ -47,6 +47,14 @@ invokes `e.preventDefault()`, Electron will attempt to delay system shutdown in
|
|||
order for the app to exit cleanly. If `e.preventDefault()` is called, the app
|
||||
should exit as soon as possible by calling something like `app.quit()`.
|
||||
|
||||
### Event: 'lock-screen' _macOS_ _Windows_
|
||||
|
||||
Emitted when the system is about to lock the screen.
|
||||
|
||||
### Event: 'unlock-screen' _macOS_ _Windows_
|
||||
|
||||
Emitted as soon as the systems screen is unlocked.
|
||||
|
||||
## Methods
|
||||
|
||||
The `powerMonitor` module has the following methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue