objective c - iOS how to programmatically read device's screen auto-lock timeout time? -


i'm creating method send debug info support team 1 of apps. have method calls these:

 nsstring* appversion = [[nsbundle mainbundle] objectforinfodictionarykey:@"cfbundleshortversionstring"];  nsstring* build = [[nsbundle mainbundle] objectforinfodictionarykey:@"cfbundleversion"];;  nsstring* iosversion = [[uidevice currentdevice] systemversion];; 

an additional requirement understand how our internal timeout interacts device's screen auto lock timer. need compare our internal timeout ipad screen lock timer.

is there way device's auto-lock time defined in device settings? see screen below number i'm trying read

enter image description here

this isn't possible. following link has work around this. can idle time in app till screen goes off should same device' auto-lock time.

iphone-detecting-user-inactivity-idle-time-since-last-screen-touch


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -