How can I monitor the screen lock status on macOS

  c++, macos

I’m working on a cli password manager with C++ on macOS, and now I need to do something after the screen being locked, such as cleanup credential which displayed on screen.

Is there any ideal about that?

Thanks a lot!

Source: Windows Questions C++

LEAVE A COMMENT