Skip to content

Conversation

@gustavo-lara-molina
Copy link
Contributor

powerMonitor
Monitor power state changes.

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.

https://www.electronjs.org/docs/api/power-monitor

@GregorBiswanger GregorBiswanger self-assigned this May 12, 2020
@GregorBiswanger GregorBiswanger added this to the 8.31.3 milestone May 12, 2020
@GregorBiswanger GregorBiswanger merged commit 6690b4a into ElectronNET:master May 12, 2020
@GregorBiswanger
Copy link
Member

Thank you very much for your contribution!
The PowerMonitor API has a few more events and functions. Can you also add these?

If you want you can send me your address via Gitter, then you will receive Electron.NET stickers as a thank you.

@gustavo-lara-molina
Copy link
Contributor Author

Hi @GregorBiswanger , sure let me add the whole power Monitor related events and methods to this branch 👍🏼
Regards.

@GregorBiswanger
Copy link
Member

I have already tested the existing one and it works wonderfully.

It is already marked in the changelog :)
https://github.com/ElectronNET/Electron.NET/blob/master/Changelog.md

@hucg18
Copy link

hucg18 commented May 14, 2020

Hi,

I tested these features in OS X and they worked just fine
Screen Shot 2020-05-13 at 17 24 40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants