Does anyone know how to programmatically lock the iPhone on iOS? I don't care if it involves using private API or framework as it's for personal use.
I have tried using https://github.com/neuroo/LockMeNow but it doesn't work on my device (running iOS 10). I guess it's for iOS 5 and below only. Does anyone have an updated method that works on newer versions of iOS?