public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { MapView.RegisterLicense(CartoLicense); UIViewController initial = new MapListController("Advanced Map Samples", Samples.RowSources); Controller = new UINavigationController(initial); Controller.NavigationBarHidden = false; Window = new UIWindow(UIScreen.MainScreen.Bounds); Window.RootViewController = Controller; Window.MakeKeyAndVisible(); Device.NavigationBarHeight = Controller.NavigationBar.Frame.Height; #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(HockeyId); manager.DisableUpdateManager = false; manager.StartManager(); return(true); }
void Initialize() { _hockeyAppManager = BITHockeyManager.SharedHockeyManager; _hockeyAppManager.Configure(_hockeyAppAPIKey); _hockeyAppManager.StartManager(); #if !DEBUG _hockeyAppManager.Authenticator.AuthenticateInstallation(); #endif }
/// <summary> /// This method is invoked when the application has loaded and is ready to run. /// </summary> /// <param name="app">An <see cref="UIApplication" /> object referencing the application.</param> /// <param name="options">An <see cref="NSDictionary" /> object containing the application options.</param> /// <returns><c>true</c> if the application has finished launching, <c>false</c> otherwise.</returns> public override bool FinishedLaunching(UIApplication app, NSDictionary options) { BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(TellOPiOSConfiguration.HockeyAppId); manager.StartManager(); manager.Authenticator.AuthenticateInstallation(); global::Xamarin.Forms.Forms.Init(); this.LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { MapView.RegisterLicense(CartoLicense); UIViewController initial = new MapListController("Advanced Samples", Samples.List); Controller = new UINavigationController(initial); // Navigation bar background color Controller.NavigationBar.BarTintColor = Colors.CartoRed; // Back button color Controller.NavigationBar.TintColor = UIColor.White; // Title color Controller.NavigationBar.TitleTextAttributes = new UIStringAttributes { ForegroundColor = UIColor.White, Font = UIFont.FromName("HelveticaNeue", 15) }; Controller.NavigationBarHidden = false; Window = new UIWindow(UIScreen.MainScreen.Bounds); Window.RootViewController = Controller; Window.MakeKeyAndVisible(); #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(HockeyId); manager.DisableUpdateManager = false; manager.StartManager(); Carto.Utils.Log.ShowInfo = true; Carto.Utils.Log.ShowWarn = true; Carto.Utils.Log.ShowDebug = true; Carto.Utils.Log.ShowError = true; 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) { new Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartRenderer(); Forms.Init(); TelerikForms.Init(); new SfChartRenderer(); new SfGaugeRenderer(); RoundedBoxViewRenderer.Init(); FAB.iOS.FloatingActionButtonRenderer.InitControl(); BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(Configuration.HockeyAppIdIOS); manager.CrashManager.CrashManagerStatus = BITCrashManagerStatus.AutoSend; manager.StartManager(); manager.Authenticator.AuthenticateInstallation(); if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { var settings = UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null); UIApplication.SharedApplication.RegisterUserNotificationSettings(settings); } if (options != null && options.ContainsKey(UIApplication.LaunchOptionsLocalNotificationKey)) { if (options[UIApplication.LaunchOptionsLocalNotificationKey] is UILocalNotification localNotification) { UIAlertController okayAlertController = UIAlertController.Create(localNotification.AlertAction, localNotification.AlertBody, UIAlertControllerStyle.Alert); okayAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null)); this.Window.RootViewController.PresentViewController(okayAlertController, true, null); UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; } } this.LoadApplication(new Hubo.Application()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(HockeyId); manager.DisableUpdateManager = false; manager.StartManager(); MapView.RegisterLicense(License); //Controller = new UINavigationController(new MapListController("CARTO Mobile Samples", Samples.RowSources)); Controller = new UINavigationController(new MapListController("CARTO MOBILE SAMPLES", Samples.List)); // Navigation bar background color Controller.NavigationBar.BarTintColor = Colors.CartoNavy; // Back button color Controller.NavigationBar.TintColor = UIColor.White; // Title color Controller.NavigationBar.TitleTextAttributes = new UIStringAttributes { ForegroundColor = UIColor.White, Font = UIFont.FromName("HelveticaNeue", 15) }; NavigationBarHeight = Controller.NavigationBar.Frame.Height; StatusBarHeight = UIApplication.SharedApplication.StatusBarFrame.Height; Controller.NavigationBarHidden = false; Window = new UIWindow(UIScreen.MainScreen.Bounds); Window.RootViewController = Controller; Window.MakeKeyAndVisible(); Device.NavigationBarHeight = Controller.NavigationBar.Frame.Height; return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { BITHockeyManager manager = BITHockeyManager.SharedHockeyManager; manager.Configure(HockeyId); manager.DisableUpdateManager = false; manager.StartManager(); MapView.RegisterLicense(License); Controller = new UINavigationController(new MapListController("CARTO Mobile Samples", Samples.RowSources)); Controller.NavigationBarHidden = false; Window = new UIWindow(UIScreen.MainScreen.Bounds); Window.RootViewController = Controller; Window.MakeKeyAndVisible(); Device.NavigationBarHeight = Controller.NavigationBar.Frame.Height; return(true); }