Exemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            if (ArchitectView.IsDeviceSupported(AugmentedRealityMode.Geo))
            {
                arView = new ArchitectView(UIScreen.MainScreen.Bounds);
                View   = arView;

                arView.SetLicenseKey("YOUR-LICENSE-KEY");

                var absoluteWorldUrl = WorldOrUrl;

                if (!IsUrl)
                {
                    absoluteWorldUrl = NSBundle.MainBundle.BundleUrl.AbsoluteString + "ARchitectExamples/" + WorldOrUrl + "/index.html";
                }

                var u = new NSUrl(absoluteWorldUrl);

                arView.LoadArchitectWorld(u);
            }
            else
            {
                var adErr = new UIAlertView("Unsupported Device", "This device is not capable of running ARchitect Worlds. Requirements are: iOS 5 or higher, iPhone 3GS or higher, iPad 2 or higher. Note: iPod Touch 4th and 5th generation are only supported in WTARMode_IR.", null, "OK", null);
                adErr.Show();
            }
        }
Exemplo n.º 2
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			if (ArchitectView.IsDeviceSupported (AugmentedRealityMode.Geo))
			{
				arView = new ArchitectView (UIScreen.MainScreen.Bounds);
				View = arView;
			
				arView.SetLicenseKey ("YOUR-LICENSE-KEY");

				var absoluteWorldUrl = WorldOrUrl;

				if (!IsUrl)
					absoluteWorldUrl = NSBundle.MainBundle.BundleUrl.AbsoluteString + "ARchitectExamples/" + WorldOrUrl + "/index.html";

				var u = new NSUrl (absoluteWorldUrl);
				
				arView.LoadArchitectWorld (u);

			}
			else
			{
				var adErr = new UIAlertView ("Unsupported Device", "This device is not capable of running ARchitect Worlds. Requirements are: iOS 5 or higher, iPhone 3GS or higher, iPad 2 or higher. Note: iPod Touch 4th and 5th generation are only supported in WTARMode_IR.", null, "OK", null);
				adErr.Show ();
			}
		}