Created
September 19, 2011 22:24
-
-
Save brandontreb/1227775 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ELCUIApplication.h | |
// | |
// Created by Brandon Trebitowski on 9/19/11. | |
// Copyright 2011 ELC Technologies. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
// # of minutes before application times out | |
#define kApplicationTimeoutInMinutes 5 | |
// Notification that gets sent when the timeout occurs | |
#define kApplicationDidTimeoutNotification @"ApplicationDidTimeout" | |
/** | |
* This is a subclass of UIApplication with the sendEvent: method | |
* overridden in order to catch all touch events. | |
*/ | |
@interface ELCUIApplication : UIApplication { | |
NSTimer *_idleTimer; | |
} | |
/** | |
* Resets the idle timer to its initial state. This method gets called | |
* every time there is a touch on the screen. It should also be called | |
* when the user correctly enters their pin to access the application. | |
*/ | |
- (void)resetIdleTimer; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment