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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -