0

is it possible to determine how many times my iPhone has been locked and unlocked programmatically when app is foreground and background as well. Code snippet will help a lot...

  • 1
    Possible duplicate of [How can I detect screen lock/unlock events on the iPhone?](http://stackoverflow.com/questions/7888490/how-can-i-detect-screen-lock-unlock-events-on-the-iphone) – Palle Feb 21 '16 at 13:37

1 Answers1

0

There's no way to get this information from your App.

You can only know when your app goes to foreground/background via your App Delegate, but not what the user does outside of your App.

fdiaz
  • 2,600
  • 21
  • 27