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.
app/sources/sleepprevent.mm

8 lines
202 B
Text
Raw Normal View History

2020-08-13 23:52:31 +02:00
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#include "headers/sleepprevent.h"
void SleepPrevent::setTimerDisabled() {
[[UIApplication sharedApplication] setIdleTimerDisabled: YES];
}