skycocker / NameAndPassword

A fixed 2014 version of Apple's NameAndPassword auth plugin sample
66 stars 14 forks source link

Detect sleep and lock/unlock event #7

Open amitt0488 opened 4 years ago

amitt0488 commented 4 years ago

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 ?