Latest 1.0.0
Homepage https://github.com/marqeta/mqtimeout
License MIT
Platforms ios 7.0, requires ARC
Authors ,

MQTimeOut detects when an app goes idle/inactive (no touches) and sends a time out notification.

Preview

MQTimeOut Screenshot

Installation

Use CocoaPods or copy over these two files to your project

MQTimeOut.m
MQTimeOut.h

Usage

Adding MQTimeOut is simple.

Change your main.m file to:

    @autoreleasepool {
        return UIApplicationMain(argc, argv, @"MQTimeOut", NSStringFromClass([MQAppDelegate class]));
    }

Start the timer and observe the time out notification:

    [((MQTimeOut *)[UIApplication sharedApplication]) startTimer];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(timerDidTimeOut)
                                                 name:MQTimerTimeOutNotification
                                               object:nil];

Review the sample for more features of MQTimeOut.

License

Usage is provided under the MIT License. See LICENSE for the full details.

Credit

A mention would be nice, but is by no means required. At the very least, shoot us an email and let us know if you’ve gotten any good use out of this control, or if you have any ideas for improvements.

Latest podspec

{
    "name": "MQTimeOut",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "Detects when an app goes idle/inactive (no touches) and sends a time out notification.",
    "authors": {
        "Aung Thar": "[email protected]",
        "Paris Xavier Pinkney": "[email protected]"
    },
    "homepage": "https://github.com/marqeta/mqtimeout",
    "social_media_url": "https://twitter.com/marqeta",
    "source": {
        "git": "https://github.com/marqeta/mqtimeout.git",
        "tag": "1.0.0"
    },
    "source_files": "MQTimeOut/*.{h,m}",
    "public_header_files": "MQTimeOut/*.h",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This