source: orbit/iOS/Orbit/Orbit/AppDelegate.m @ 9015b1e

RawEEGServoTab_Interfacepyramid
Last change on this file since 9015b1e was 9015b1e, checked in by Jonathon Horsman <jonathon@…>, 7 years ago

UI working with headset correctly now.
Check Bluetooth enabled and volume at full

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[dccf843]1//
2//  AppDelegate.m
3//  Orbit
4//
[2aabdf3]5//  Copyright (c) 2012 Puzzlebox Productions, LLC. All rights reserved.
[067ea71]6//  Originally created by Jonathon Horsman.
7//
8//  This code is released under the GNU Public License (GPL) version 2
9//  For more information please refer to http://www.gnu.org/copyleft/gpl.html
[dccf843]10//
11
12#import "AppDelegate.h"
[ab9d63b]13#import "SignalConverter.h"
[a9059a5]14#import "CorePlot-CocoaTouch.h"
[dccf843]15
16@implementation AppDelegate
17
[ab9d63b]18@synthesize signalConverter;
19
[dccf843]20- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
21{
22    // Override point for customization after application launch.
[9015b1e]23    NSLog(@"didFinsihLaunching - signal convertor init");
[ab9d63b]24    signalConverter = [[SignalConverter alloc] init];
25//    [[TGAccessoryManager sharedTGAccessoryManager] setupManagerWithInterval:0.05];
26//    [[TGAccessoryManager sharedTGAccessoryManager] setDelegate:(ViewController *)self.window.rootViewController];
[dccf843]27    return YES;
28}
29                                                       
30- (void)applicationWillResignActive:(UIApplication *)application
31{
32    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
33    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
[ab9d63b]34//    ViewController *rootController = (ViewController *)self.window.rootViewController;
35//    [rootController appClosed];
[9015b1e]36    [signalConverter appStopped];
37    NSLog(@"Application will resign active - appClosed");
[dccf843]38}
39
40- (void)applicationDidEnterBackground:(UIApplication *)application
41{
42    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
43    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
44}
45
46- (void)applicationWillEnterForeground:(UIApplication *)application
47{
48    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
49}
50
51- (void)applicationDidBecomeActive:(UIApplication *)application
52{
53    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
54}
55
56- (void)applicationWillTerminate:(UIApplication *)application
57{
58    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
[9015b1e]59    NSLog(@"Application will terminate - teardownManager");
[66477ef]60    [[TGAccessoryManager sharedTGAccessoryManager] teardownManager];
[dccf843]61}
62
63@end
Note: See TracBrowser for help on using the repository browser.