Jason, You need to call [application setIdleTimerDisabled:YES/NO];
- (void)applicationWillResignActive:(UIApplication *)application { [application setIdleTimerDisabled:NO]; } - (void)applicationDidEnterBackground:(UIApplication *)application { [application setIdleTimerDisabled:NO]; } - (void)applicationWillEnterForeground:(UIApplication *)application { [application setIdleTimerDisabled:YES]; } - (void)applicationDidBecomeActive:(UIApplication *)application { [application setIdleTimerDisabled:YES]; } -(void)applicationWillTerminate:(UIApplication *)application { [application setIdleTimerDisabled:NO]; } Regards, Nuno Santos Founder / CEO / CTO www.imaginando.pt +351 91 621 69 62 > On 22 Feb 2016, at 15:51, Jason H <jh...@gmx.com> wrote: > > I have an app that records video. If the user records more than the display > timeout, the display goes black. > > Is there a way in Qt 5.5 or 5.6 to prevent the device sleep? I know android > will require a WAKE_LOCK permissions. > > Ideally these this will only be in place while the video recording is active. > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest