// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); // We use NSUserDefaults to store a bool value if we are tracking the user or not var optionsDict = NSDictionary.FromObjectAndKey(new NSString("YES"), new NSString(AllowTrackingKey)); NSUserDefaults.StandardUserDefaults.RegisterDefaults(optionsDict); // User must be able to opt out of tracking GAI.SharedInstance.OptOut = !NSUserDefaults.StandardUserDefaults.BoolForKey(AllowTrackingKey); // Initialize Google Analytics with a 5-second dispatch interval (Use a higher value when in production). There is a // tradeoff between battery usage and timely dispatch. GAI.SharedInstance.DispatchInterval = 5; GAI.SharedInstance.TrackUncaughtExceptions = true; Tracker = GAI.SharedInstance.GetTracker("CuteAnimals", TrackingId); viewController = new DVCMenu(); navController = new UINavigationController(viewController); window.RootViewController = navController; window.MakeKeyAndVisible(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching (UIApplication app, NSDictionary options) { window = new UIWindow (UIScreen.MainScreen.Bounds); // We use NSUserDefaults to store a bool value if we are tracking the user or not var optionsDict = NSDictionary.FromObjectAndKey (new NSString ("YES"), new NSString (AllowTrackingKey)); NSUserDefaults.StandardUserDefaults.RegisterDefaults (optionsDict); // User must be able to opt out of tracking GAI.SharedInstance.OptOut = !NSUserDefaults.StandardUserDefaults.BoolForKey (AllowTrackingKey); // Initialize Google Analytics with a 5-second dispatch interval (Use a higher value when in production). There is a // tradeoff between battery usage and timely dispatch. GAI.SharedInstance.DispatchInterval = 5; GAI.SharedInstance.TrackUncaughtExceptions = true; Tracker = GAI.SharedInstance.GetTracker ("CuteAnimals", TrackingId); viewController = new DVCMenu (); navController = new UINavigationController (viewController); window.RootViewController = navController; window.MakeKeyAndVisible (); return true; }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Manager = Manager.GetInstance; // Optional: Change the LogLevel to Verbose to enable logging at VERBOSE and higher levels. Manager.Logger.SetLogLevel(LoggerLogLevelType.Verbose); window = new UIWindow(UIScreen.MainScreen.Bounds); viewController = new DVCMenu(); navController = new UINavigationController(viewController); window.RootViewController = navController; window.MakeKeyAndVisible(); return(true); }