diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-31 08:21:38 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-31 08:21:38 -0400 |
| commit | 02811010cf62f1b21a06780d1e470d04bb24c50f (patch) | |
| tree | 0d933789068aac11c810ed4bb169d14ab16c43c6 /plugins/nl.x-services.plugins.insomnia/src/ios | |
| parent | bca561c1b3989d62a1fba829e0380c6fbf36caf5 (diff) | |
removed unecessary files from git
Diffstat (limited to 'plugins/nl.x-services.plugins.insomnia/src/ios')
| -rwxr-xr-x | plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.h | 9 | ||||
| -rwxr-xr-x | plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.m | 32 |
2 files changed, 0 insertions, 41 deletions
diff --git a/plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.h b/plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.h deleted file mode 100755 index c13c07ba..00000000 --- a/plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.h +++ /dev/null @@ -1,9 +0,0 @@ -#import <Cordova/CDV.h> - -@interface Insomnia :CDVPlugin - -- (void) keepAwake:(CDVInvokedUrlCommand*)command; - -- (void) allowSleepAgain:(CDVInvokedUrlCommand*)command; - -@end diff --git a/plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.m b/plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.m deleted file mode 100755 index 7eca3b07..00000000 --- a/plugins/nl.x-services.plugins.insomnia/src/ios/Insomnia.m +++ /dev/null @@ -1,32 +0,0 @@ -#import "Insomnia.h" -#import <Cordova/CDV.h> - -@implementation Insomnia - -- (void) keepAwake:(CDVInvokedUrlCommand*)command { - NSString *callbackId = command.callbackId; - - // Acquire a reference to the local UIApplication singleton - UIApplication* app = [UIApplication sharedApplication]; - - if (![app isIdleTimerDisabled]) { - [app setIdleTimerDisabled:true]; - } - CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - [self.commandDelegate sendPluginResult:result callbackId:callbackId]; -} - -- (void) allowSleepAgain:(CDVInvokedUrlCommand*)command { - NSString *callbackId = command.callbackId; - - // Acquire a reference to the local UIApplication singleton - UIApplication* app = [UIApplication sharedApplication]; - - if([app isIdleTimerDisabled]) { - [app setIdleTimerDisabled:false]; - } - CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - [self.commandDelegate sendPluginResult:result callbackId:callbackId]; -} - -@end
\ No newline at end of file |
