I need to distinguish between login mode and lock/unlock mode.
I followed this https://stackoverflow.com/questions/49914330/not-getting-screenlock-notification-on-swift-4-on-mac and was able to get unlock event captured.
Verified this on a sample cocoa application.
How to integrate the same with SFAuthorizationPluginView or with this code ?