Esempio n. 1
0
		public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
		{
			Xamarin.Forms.Forms.Init ();

			// Pitch is speed pi/2 -> 0
			// Roll turning speed -p1/2 -> p1/2
			man.StartDeviceMotionUpdates (new NSOperationQueue (), (m, e) => {
				Roll = m.Attitude.Roll;
				Pitch = m.Attitude.Pitch;
				Yaw = m.Attitude.Yaw;
				GyroUpdated (this, EventArgs.Empty);
			});

			app = new App (Adapter.Current, this);

			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.RootViewController = app.GetMainPage ().CreateViewController ();
			window.MakeKeyAndVisible ();

			return true;
		}