This repository has been archived on 2024-06-03. You can view files and clone it, but cannot push or open issues or pull requests.
monitor/sources/sleepprevent.mm

8 lines
194 B
Text
Raw Permalink Normal View History

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#include "sleepprevent.h"
void SleepPrevent::setTimerDisabled() {
[[UIApplication sharedApplication] setIdleTimerDisabled: YES];
}