How to detect lock mode vs login mode at runtime using objective c

I have overriden a macOS login screen with my own using SFAuthorizationPluginView.
I want a way/event to detect whether we have come from login mode or sleep mode or lock mode during during login event at runtime using objective c. Is there a way?