I wanted to detect two events :
First one I have been able t
You can also subscribe for a notification: "com.apple.springboard.lockstate" and use API SBGetScreenLockStatus to determine status whether device is locked or not.