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
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
Post a Comment