On MacBook, how to detect notebook's lid switch event?


#1

Hi all, I’m using Electron to develop a mac desktop app and I want to detect notebook’s lid switch event, I can’t find any clue in the documentation, can anyone help? Thanks a lot.