public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //register notification for iO8
            var settings = UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Alert, null);

            UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);

            //set fullscreen on iOS7
            if (UIDevice.CurrentDevice.CheckSystemVersion(7, 0))
            {
                EdgesForExtendedLayout = UIRectEdge.None;
            }

            //Create AR View
            if (WTArchitectView.IsDeviceSupportedForAugmentedRealityMode(WTAugmentedRealityMode._Geo))
            {
                arView = new WTArchitectView(UIScreen.MainScreen.Bounds, null, WTAugmentedRealityMode._Geo);
                arView.SetLicenseKey(AppSettings.WikitudeSDKkeyiOS);
                //Set path to wikitude components
                var absoluteWorldUrl = NSBundle.MainBundle.BundleUrl.AbsoluteString + "wikitude/" + arID + "/index.html";
                var u = new NSUrl(absoluteWorldUrl);
                //load AR world
                arView.LoadArchitectWorldFromUrl(u);

                View.AddSubview(arView);
            }
            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();
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            if ( UIDevice.CurrentDevice.CheckSystemVersion(7, 0) )
            {
                EdgesForExtendedLayout = UIRectEdge.None;
            }

            if (WTArchitectView.IsDeviceSupportedForAugmentedRealityMode (WTAugmentedRealityMode._Geo))
            {
                arView = new WTArchitectView (UIScreen.MainScreen.Bounds, null, WTAugmentedRealityMode._Geo);
                arView.SetLicenseKey ("Ug7LmdNQJKN5AX85OMRGt1LIk1xBmwOWi8u+4eEVBpIvKZ8EWh2w1z3f5Cd4YHnWlEIdazY1envd/W7Xy5U4GUlkNmH2l9ddWZr5gIsz0zuD4GZVunmt0o49f4rDv+ssM78CAklidZeMkxqTGGoG6I8UjoegiWEKtzoH3qWpruNTYWx0ZWRfX3mWnNyLFq5Z+rfkc+m7sBeEhO/Urh2wYX/E57J6MdWPrCvmW0Zrt0RfAkUjmmHZ9MdjOyghN4VtSnY6nwc+Xz2Wg8vrCG02TIMw8SbNBRqP4ljrg3BnmjSONHRC69rzLnzCalB+YXAIdh5QdZI8TG8nJNUQCZGmjdrF5SpznSbcLpjDqfI36NaGW3cnH6evloXrcItbrnJDeeZlfB7CZj6PpLaf6q4GpKJRIEiVbeY3UpQ19+5IsydEbo0eVwZQFtE/G/NB7mNM1SjwteJ53EumNT9hd/4fMmk7L3nUj4kpyZ2gttPTS0/1kxtwVJjfRntngMiSN6czJrmrI5IyqN3qjEDextUNJ6zpvj97Vx/k+6RkItCgbMLZzdGgnyvIq9jumKiICOZXcFz4iacFFsYag4w87FoUwJFdp2SAsuW374FdmMB2tE5Zk5CONbQvMCKkMwdT6RnqA0SrzX4NA9qDLv8DwcoOu3jiszRE//8uOGS26I4NIznQniu8gn04sdeDm3P50rVkB7Vq3CDP89LIE8CoqChJ9DVEm2IzwfHFRd6cDalxC9szRKxOI4H5Z6wJY4tPHTeQha3Gp4jFQXLbtwfPLPcr+DyH8GkOf6+aIbzz3AVZZz9v67JN2W5O1xR2BZXAjkE0SC4zXK2g0H6MuDEYLdLHZCnl8ik/Aw3ydyFe5zw9+olNC/72uH5rA5ZLyiACVauyXwwsc6bNzJu3c5Dyb724zg==");

                var absoluteWorldUrl = WorldOrUrl;
                if (!IsUrl)
                    absoluteWorldUrl = NSBundle.MainBundle.BundleUrl.AbsoluteString + "ARchitectExamples/" + WorldOrUrl + "/index.html";
                Console.WriteLine (absoluteWorldUrl);
                var u = new NSUrl (absoluteWorldUrl);
                arView.LoadArchitectWorldFromUrl (u);

                View.AddSubview (arView);
            }
            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 ();
            }
        }
Example #3
0
        public override void ViewDidLoad()
        {
            string WikiKey = "e9T8QNdR9to8mZXsh+NKsVpVyAIEfz58yOlPVEnQlRCCih4BQ0BetTTTmltJmgRWKfTdV2PiizecU4WjlpCLMApw23i17QELh4yElciFJZboITsYR6+OFIJjQSj6UOKDcLNM8MMfjaFeKplove23iz4EJxsGspNWKQRPHH+rCppTYWx0ZWRfX/ONUYPBt83/xwHZD6gZ+euFDQaOXUxYrWXCkuvtwIloIDBOCORD0eom6K4GCGj7ryLbX3Hdl6lG/8Oz2RsuE8N2/iQwHPnpJ5oWECtb/vTcuLEHyZinL6lJvU6I/ORraJuomTek6eyYnWxEdFDRFGimFHJKhGXoV8czzuzDwbDjZ16vrFJMjYj5QI+PX4t1MaCr0nTWUG6X2Kro17Vtm8j6+AMwj1IKDWGtiF+C3p2cf6UpBkjm9l83HasySxoWYwwPHdZpcOiSbS3179B6Wwh8eONtQSYh0uRgc51RjapRo1uydY9obUq1qPitdPCHgP+D5JlYfwh5ZqUDKU+dtet3tlX/l0zmEWLVlmYUtkBJ94N9bCKg6t4pxVX2qJHtgBW4eSUoHqkSLCXEt7RubDRg5dJ/e+PJ7SM1vYU8f/lMZY1XEtfyh8f+WgYSIlOBOTKFqX3VqZPhJLWA+dIpgWxd5P1/5R598lw0F+98HcmrVpXhxVOM4T8=";

            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            this.architectView          = new Wikitude.Architect.WTArchitectView();
            this.architectView.Delegate = architectViewDelegate;
            this.architectView.ShouldAuthorizeRestrictedAPIs = false;
            this.View.AddSubview(this.architectView);
            this.architectView.TranslatesAutoresizingMaskIntoConstraints = false;

            NSDictionary views = new NSDictionary(new NSString("architectView"), architectView);

            this.View.AddConstraints(NSLayoutConstraint.FromVisualFormat("|[architectView]|", 0, null, views));
            this.View.AddConstraints(NSLayoutConstraint.FromVisualFormat("V:|[architectView]|", 0, null, views));

            //architectView.SetLicenseKey ("NGBXvYi66YY4pT3CqeLvcv31N9xl4uasQ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0sHLE+fmK7LOSUipj8qc7s6sD01la+xHL7yrcpWDJIJ46cgiycaVb7AWSW5c8wXpKK+i/JgI8IDVDPqMFZVfhFhfW8jg=");

            architectView.SetLicenseKey(WikiKey);

            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.DidBecomeActiveNotification, (notification) => {
                StartAR();
            });

            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillResignActiveNotification, (notification) => {
                StopAR();
            });
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            if (UIDevice.CurrentDevice.CheckSystemVersion(7, 0))
            {
                EdgesForExtendedLayout = UIRectEdge.None;
            }

            if (WTArchitectView.IsDeviceSupportedForAugmentedRealityMode(WTAugmentedRealityMode._Geo))
            {
                arView = new WTArchitectView(UIScreen.MainScreen.Bounds, null, WTAugmentedRealityMode._Geo);
                arView.SetLicenseKey("Ug7LmdNQJKN5AX85OMRGt1LIk1xBmwOWi8u+4eEVBpIvKZ8EWh2w1z3f5Cd4YHnWlEIdazY1envd/W7Xy5U4GUlkNmH2l9ddWZr5gIsz0zuD4GZVunmt0o49f4rDv+ssM78CAklidZeMkxqTGGoG6I8UjoegiWEKtzoH3qWpruNTYWx0ZWRfX3mWnNyLFq5Z+rfkc+m7sBeEhO/Urh2wYX/E57J6MdWPrCvmW0Zrt0RfAkUjmmHZ9MdjOyghN4VtSnY6nwc+Xz2Wg8vrCG02TIMw8SbNBRqP4ljrg3BnmjSONHRC69rzLnzCalB+YXAIdh5QdZI8TG8nJNUQCZGmjdrF5SpznSbcLpjDqfI36NaGW3cnH6evloXrcItbrnJDeeZlfB7CZj6PpLaf6q4GpKJRIEiVbeY3UpQ19+5IsydEbo0eVwZQFtE/G/NB7mNM1SjwteJ53EumNT9hd/4fMmk7L3nUj4kpyZ2gttPTS0/1kxtwVJjfRntngMiSN6czJrmrI5IyqN3qjEDextUNJ6zpvj97Vx/k+6RkItCgbMLZzdGgnyvIq9jumKiICOZXcFz4iacFFsYag4w87FoUwJFdp2SAsuW374FdmMB2tE5Zk5CONbQvMCKkMwdT6RnqA0SrzX4NA9qDLv8DwcoOu3jiszRE//8uOGS26I4NIznQniu8gn04sdeDm3P50rVkB7Vq3CDP89LIE8CoqChJ9DVEm2IzwfHFRd6cDalxC9szRKxOI4H5Z6wJY4tPHTeQha3Gp4jFQXLbtwfPLPcr+DyH8GkOf6+aIbzz3AVZZz9v67JN2W5O1xR2BZXAjkE0SC4zXK2g0H6MuDEYLdLHZCnl8ik/Aw3ydyFe5zw9+olNC/72uH5rA5ZLyiACVauyXwwsc6bNzJu3c5Dyb724zg==");

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

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

                View.AddSubview(arView);
            }
            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();
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.architectView          = new WTArchitectView();
            this.architectView.Delegate = architectViewDelegate;
            this.View.AddSubview(this.architectView);
            this.architectView.TranslatesAutoresizingMaskIntoConstraints = false;

            NSDictionary views = new NSDictionary(new NSString("architectView"), architectView);

            this.View.AddConstraints(NSLayoutConstraint.FromVisualFormat("|[architectView]|", 0, null, views));
            this.View.AddConstraints(NSLayoutConstraint.FromVisualFormat("V:|[architectView]|", 0, null, views));

            architectView.SetLicenseKey("yV/CuS7fMQAsiu/ZMgUghXHxQKuo+5vrUyyFDUIk5BTym1hTKn3hRpg9eHeGsiq1pVKY9IMzdFAEJWqRGILrrQmhlLd+pGg+eDF72aRUom90xl80UnO6vrSGMRkS/pmrnM6EjN1464bGMwNNxn+WnncBDtCb+ycfIJUQZEu8hkNTYWx0ZWRfXyhu76iZIxT/SWUY/J8HJjafZnIf7vSJdTo6hyM8wgfSbW72gf+3n8VAnIw4J8MIFbAS1xyTLmrmpvw/RoOMmKaZZAeAQkTZz7Gtv0Ja9glyWlMjcEH4OhM2CrjetjX2jC2pMbqQpshFEmP2dB8KdOq3t2KBZ3NPodklpdK/+g9NIl2P+tQzN0fZitpYCflfqfyopQ3iiZeEZMen3P9LUcgvBoTgo49jNM6wYy+06RoW8dymZmAPiiKb2PKbCNtXJ3AjJSyJm610SdikGG4XOs6j00X3ryg0TtIZHj6veAcprIQBChHUBBWxTY4KyyMD1caXrFUBBi3m348k631N57ogheBBJA7FEpvP5pAgjuLTiMz20At4w7sbCK+on8XpEPzp0jTvMcGwRtamYQhVXfG3ApH1i0awC7LpFx2mx0ropZuOw/YEB9DrdaLlrfHuJ6OuqDEfTie1NMjFIFG4kGGgcf3j6GYOPpdhWH1wATf0PhUBcGMWscqegOPvh+woG20sTf08uG1tF0jPB/vCxHOJ4XOByyGucG4OV5BqjupXi4Kp7CxIJl0=\n");
            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.DidBecomeActiveNotification, (notification) =>
            {
                if (navigation.Interrupted)
                {
                    architectView.reloadArchitectWorld();
                }
                StartAR();
            });

            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillResignActiveNotification, (notification) =>
            {
                StopAR();
            });

            var path = NSBundle.MainBundle.BundleUrl.AbsoluteString + "3DModel/index.html?id=" + worldId;

            navigation = architectView.LoadArchitectWorldFromURL(NSUrl.FromString(path), WTFeatures.Geo);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.architectView          = new WTArchitectView();
            this.architectView.Delegate = architectViewDelegate;
            this.View.AddSubview(this.architectView);
            this.architectView.TranslatesAutoresizingMaskIntoConstraints = false;

            NSDictionary views = new NSDictionary(new NSString("architectView"), architectView);

            this.View.AddConstraints(NSLayoutConstraint.FromVisualFormat("|[architectView]|", 0, null, views));
            this.View.AddConstraints(NSLayoutConstraint.FromVisualFormat("V:|[architectView]|", 0, null, views));

            architectView.SetLicenseKey("NGBXvYi66YY4pT3CqeLvcv31N9xl4uasQSZwF5xPfJ5lcrI5leTkRrzzVihYTbEbRWRf9S9hWqkeCykxd1IgU/qbg5WJjwSK7dk9f/zHwlV1Qa/JYIB6l+sh2OjrdrXO7E9Qdqih1RYGF+3MDt7CC3BmMUrhkFanOvCf/eXMmX1TYWx0ZWRfX6PikQ4qQBjn7mRR7l4e36y3jrIqcuQfE4vdeKCDiD2pePwQ41U/FnA7HSShjqq9TcTpQaASuWQL+nnrKUU3ybpck+50zKokc0nK6tX0rjqAE3cKZJIXMV1VRszX2rUJFFzM80eMWNQ2FN6I3e0LlyY3gkAt05XUiTq4YaOVb62gRlytIPNvaxwFoj3Xvh5+vR4afdbKAgdAlxT4KLazRObTUBuYHWeKU9/cXR4RagzSDUt+mpYzEVpZTB8OjGFWKf+j+5kCRrQ/ra4gYIuf3KqYFy0JsuAeN2keaI5M34saqcTNSUV7Ng1V/ZjJg9Ac56TLC+D1FuMDdpZ6c3eWTsaccwc4tMmnyiA8Y60GqXIeFOClE1locWR0Fu/MXmOkoFSXGy/ldfzVOo756Mhb4xCSTvbN+PUKbyM9EYWrmj3Yu88wxglud9L+G8etmi+Mr1wO4SGCfIQdzu1Pt9go8QhZpIB7Nyk1IirWW99b10Kzh8rW1fj8ReVBddHb4SU5+r2/CmAUMrbohodJFBefpbagBhQ7EV8sg/1ylBYaNVXUi3bfCt437rcwNniWV6/Pm4thryejMMflAji9gp+TgioY4r1ex6LDzzzRrHGZ+Qypwrm41oxWpz5Gw4hbkeakbqhVT7AgTq2bvQ++Gkksaw5RO54rIzuh2QOu1Ad+XY81VHLYMnudcLzWuY3WcrQEqgQ/jRIGOH4ZywKTOqtXozF4Us85z5CWHfdESc2foe68ZbOem/pn7a9Hk+foWy9oFp8/0lEKjoVCZp264eeU7EsdQoHNnPDq8w3UZSfVGd3sOytAIQAkeFER/5GNQBXM+gsoCU3cd5Wrfvj9LHrC223CqdDENpyVc2uHc+RfyOAhXMZxtw0+Hi2etkJXkC+6y4ncxwKt8wlThhBtpDfgE0wB6wZ0sHLE+fmK7LOSUipj8qc7s6sD01la+xHL7yrcpWDJIJ46cgiycaVb7AWSW5c8wXpKK+i/JgI8IDVDPqMFZVfhFhfW8jg=");

            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.DidBecomeActiveNotification, (notification) =>
            {
                if (navigation.Interrupted)
                {
                    architectView.reloadArchitectWorld();
                }
                StartAR();
            });

            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillResignActiveNotification, (notification) =>
            {
                StopAR();
            });

            var path = NSBundle.MainBundle.BundleUrl.AbsoluteString + "SDK_Examples/" + worldId + "/index.html";

            navigation = architectView.LoadArchitectWorldFromURL(NSUrl.FromString(path), WTFeatures.Geo);
        }
        public override void InvokedURL(WTArchitectView architectView, NSUrl url)
        {
            string uriString = url.AbsoluteString;
            Uri    uri       = new Uri(uriString);
            NameValueCollection parameters = HttpUtility.ParseQueryString(uri.Query);

            _presentingVC.showPoiDetails(parameters["id"], parameters["title"], parameters["description"]);
        }
        public override void InvokedURL(WTArchitectView architectView, NSUrl url)
        {
            string uriString = url.AbsoluteString;
            Uri uri = new Uri (uriString);
            NameValueCollection parameters = HttpUtility.ParseQueryString (uri.Query);

            _presentingVC.showPoiDetails (parameters["id"], parameters["title"], parameters["description"]);
        }
Example #9
0
            public override void DidFailToLoadNavigation(WTArchitectView architectView, WTNavigation navigation, NSError error)
            {
                string            errorMessage = error.LocalizedDescription + " ('" + navigation.OriginalURL + "')";
                UIAlertController failedToLoadArchitectWorldAlertController = UIAlertController.Create("Failed to load Architect World", errorMessage, UIAlertControllerStyle.Alert);

                failedToLoadArchitectWorldAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null));

                arExperienceViewController.PresentViewController(failedToLoadArchitectWorldAlertController, true, null);
            }
        public override void InvokedURL(WTArchitectView architectView, NSUrl url)
        {
            if ( SLComposeViewController.IsAvailable(SLServiceKind.Facebook) ) {
                NSDictionary info = new NSDictionary ();

                architectView.CaptureScreenWithMode(WTScreenshotCaptureMode._CamAndWebView, WTScreenshotSaveMode._Delegate, WTScreenshotSaveOptions.None, info);
            } else {
                NSDictionary info = new NSDictionary ();
                architectView.CaptureScreenWithMode(WTScreenshotCaptureMode._CamAndWebView, WTScreenshotSaveMode._PhotoLibrary, WTScreenshotSaveOptions.CallDelegateOnSuccess, info);
            }
        }
        public override void DidCaptureScreenWithContext(WTArchitectView architectView, NSDictionary context)
        {
            string intString = context.ObjectForKey(new NSString("kWTScreenshotSaveModeKey")).ToString();
            int resultCode = int.Parse (intString);

            if (WTScreenshotSaveMode._Delegate == (Wikitude.Architect.WTScreenshotSaveMode)resultCode) {
                UIImage image = (UIImage)context[(new NSString("kWTScreenshotImageKey"))];
                postImageOnFacebook (image);
            } else {
                showPhotoLibraryAlert ();
            }
        }
        override public void InvokedURL(WTArchitectView architectView, NSUrl url)
        {
            if (SLComposeViewController.IsAvailable(SLServiceKind.Facebook))
            {
                NSDictionary info = new NSDictionary();

                architectView.CaptureScreenWithMode(WTScreenshotCaptureMode._CamAndWebView, WTScreenshotSaveMode._Delegate, WTScreenshotSaveOptions.None, info);
            }
            else
            {
                NSDictionary info = new NSDictionary();
                architectView.CaptureScreenWithMode(WTScreenshotCaptureMode._CamAndWebView, WTScreenshotSaveMode._PhotoLibrary, WTScreenshotSaveOptions.CallDelegateOnSuccess, info);
            }
        }
        override public void DidCaptureScreenWithContext(WTArchitectView architectView, NSDictionary context)
        {
            string intString  = context.ObjectForKey(new NSString("kWTScreenshotSaveModeKey")).ToString();
            int    resultCode = int.Parse(intString);

            if (WTScreenshotSaveMode._Delegate == (Wikitude.Architect.WTScreenshotSaveMode)resultCode)
            {
                UIImage image = (UIImage)context[(new NSString("kWTScreenshotImageKey"))];
                postImageOnFacebook(image);
            }
            else
            {
                showPhotoLibraryAlert();
            }
        }
Example #14
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            architectView = new WTArchitectView();
            architectView.SetLicenseKey("d4+aKxOGTRBB+f+buOI1eDVk9NY3wZaTCDiEsN2ZV9UilBwsDbXrWiY1bt8jBcFIWyDNHbZ037vHSeEc8zJ5YrB3AtEhc/FvaJOK6vJqkU6IPNKZK/zMac7bVmZjrP2v8ReUUokkd7hfj6//ReBXVNiQ3ePQ1Heg/XGPYUr7xMhTYWx0ZWRfX20XMtB7PZbGeCdS+PRqMDypqb7e2kiph6mSJTR8z9iPrBfK1fpdATxwtMDpN3Zxsy31d7Rs/KEDO4pj+36zd4sT4bANOiomixmfSxoFLXLdK9okHqx06Gpq5C+m0eE7tsECiIgAX9wLXrpuhX9/FhyNsGm2LmlQHIw0KLU3NUQBgEVwokwnkFT1Cp3Z/p4fa49J+0E/Fr8CitR0PTQtWiPHUF+wLAYGbnYo7qWWODjKRGTXDL4IDsSk5TCBtsZX459qz9VW2rUkLtBbNEqqDMqvFARfrumuX9Wmb+DZnofDQ/7BHdHn8O2tkSDdG3ZZwiAfj6EY2cnNkUOQX4lCnMa9IN8y8yJB3fCbx6oHTlOcXtgVzbqg6/xXc0Gf8QNYgp6k0id+Vgo2aySyqcP7InnC4KrcM6BiHRhsrfVGsyaGTVc16ltlzfkSaY7kSUPGQqxyY7Ghdiw4R7dDN0RufiEvmB6YHW4a/wnByt8ORFQnpLJn8HsZ7Qa1S3XSOEaHPLwFZKpUKwRE+YBffAilgO5CeznCTE0droljwo82pmxHSCsxygSN7gw7gEWIetv0Z/nHceDxO9Zl");
            architectView.RequiredFeatures = WTFeatures.Geo;
            architectView.TranslatesAutoresizingMaskIntoConstraints = false;
            Add(architectView);

            architectView.CenterXAnchor.ConstraintEqualTo(View.CenterXAnchor).Active = true;
            architectView.CenterYAnchor.ConstraintEqualTo(View.CenterYAnchor).Active = true;
            architectView.WidthAnchor.ConstraintEqualTo(View.WidthAnchor).Active     = true;
            architectView.HeightAnchor.ConstraintEqualTo(View.HeightAnchor).Active   = true;

            EdgesForExtendedLayout = UIRectEdge.None;
        }
        public override void InvokedURL(WTArchitectView architectView, NSUrl url)
        {
            UIKit.UIImage test = architectView.Capture();

            Console.WriteLine("architect view invoked url: " + url);

            // we need to fire this back to the main page so that the main page now enables the rest of the quiz pages ...
            MainMenuPage.SetApplicationCurrentProperty("WestAfrica", "true");

            // SEND EMAIL WITH PHOTO or TWEET PHOTO HERE....

            // Button emailButton = new Button { Text = "Email" };
            // emailButton.Clicked += (sender, e) =>
            // {
            // Device.OpenUri(new Uri("mailto:[email protected]"));
            // };
        }
Example #16
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            architectView = new WTArchitectView();
            architectView.SetLicenseKey(Utils.Keys.WikitudeLicense);
            delegateObject         = new ArchitectDelegate(this);
            architectView.Delegate = delegateObject;
            architectView.TranslatesAutoresizingMaskIntoConstraints = false;
            Add(architectView);

            architectView.CenterXAnchor.ConstraintEqualTo(View.CenterXAnchor).Active = true;
            architectView.CenterYAnchor.ConstraintEqualTo(View.CenterYAnchor).Active = true;
            architectView.WidthAnchor.ConstraintEqualTo(View.WidthAnchor).Active     = true;
            architectView.HeightAnchor.ConstraintEqualTo(View.HeightAnchor).Active   = true;
            NavigationController.Delegate     = new NavigationControllerDelegate(architectView);
            architectView.ReceivedJSONObject += ArchitectView_ReceivedJSONObject;
            EdgesForExtendedLayout            = UIRectEdge.None;
            View.BringSubviewToFront(addMarkButton);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            architectView = new WTArchitectView();
            architectView.SetLicenseKey("rRcPFV/GWHOalFjHX9rP9TWGNRKVu8P4FSKvHtps1mo14SexXUmlVAebLNuKKr9OcOFD89RiMH03AY3eJL09d3Pbvb/V+AVYsQiBROkqqAhYe2lDojp++ZAPDx2RM9rJrD+1qYyUUbdUyKzIJXrU09u4tST9NdhER08njP2tMydTYWx0ZWRfX/p90uj/Yn9x/bcRTK6REaUg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VLczCoWftmlLhHb/NcmNmCHnTp/Mm9yObyNsiG3oQ1Wbb1a9eMOcJ5y/Wvpi0RSYGwIfJcIIknvJIwPphZ3AJ3K9x/M89kct/J65XZMAMdnM1FbtLRpgKUVAUIUJ/E6V03QP/ElUHHukYjbXABWs/fJ/6uy9E4aXjbmzJQ6I9VKQ1uUsT2Oh8585HoXp6LLiFxADdRSIllJBtuMCmgfrd06qQ/q9wu8xFzvJYBeIT6xlCbsBXgdm");
            delegateObject         = new ArchitectDelegate(this);
            architectView.Delegate = delegateObject;
            architectView.TranslatesAutoresizingMaskIntoConstraints = false;
            Add(architectView);

            architectView.CenterXAnchor.ConstraintEqualTo(View.CenterXAnchor).Active = true;
            architectView.CenterYAnchor.ConstraintEqualTo(View.CenterYAnchor).Active = true;
            architectView.WidthAnchor.ConstraintEqualTo(View.WidthAnchor).Active     = true;
            architectView.HeightAnchor.ConstraintEqualTo(View.HeightAnchor).Active   = true;

            NavigationController.Delegate = new NavigationControllerDelegate(architectView);

            EdgesForExtendedLayout = UIRectEdge.None;
        }
Example #18
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            architectView = new WTArchitectView();
            architectView.SetLicenseKey("Woex1pskjRx8tnj0+cbhDcemFHEGQT1szReV2lRT1OEIoY+nd3HK6SZQTqiUZc8kjzA7KKH1CkJFTC0NHICBG0WOxhEOsSg8T3dm1B/OltukL1AFS2AfCnqYjLSimBLupveDxftECiH6WISVdBawXC+vUg/dVFAN/1/yyv/+k55TYWx0ZWRfX8xFOjxPU2nrT+dUGa+/wyw96rvh3ZBKQ/iDmtYkysmSjsuvg7p3lWlQwz4b3DfFfPBTTHSAcEObY6nBBf8WI4b3/LqoOIPv734wETomYqPgaCCsGYkSdy9f/p4cfNq7ij2iQxwG+vDlcqSBjD60uwI6A0BxlezOaqP8u6MbttJobGgtshn0Gca44GOPW4s2gmHRuiOGlDhogbDsslhScbAbdS3IF2BIGuXEylp7RTzAT/XdC/MSaOq86o59O4i4jUl4wi0c1XRKpj0U7NYSMBhgc3B1S/7EL486Z4nGlVns9EwvTX0cVqDAUegG/CWnf1CDZKNen6kqpe0rbe7O6TKerv4sMFUA6Kl4FPNgy3lcG5mNtUa6X1jiMW8hfZUbgAaZ5ZSGCpaiaTUGGYXfv3GnoYJx28/KnwW38khd0hdQ5pv228LPCnusBFpt+VOR6EUj/hZj5ZvRJ1Wo4Ar8teSKT2HcwjZYOY2TKQfTnfzr12zNaOXG5S/eMJCKrMJZmcGsIxEgNRKEVPm7h+L3ClwP57PFkis5ym91moHfZllZg5+EUKzG4bhVlSLHugz6BycfBpACrBVQNsdjmhQkpwzIli9vGcmWHhVl3cgrezfhDuCopg3jsHJEqvw37J2RkSyFr6BWY98YngbQPj6AdxTPr2ews0hiayjfpU0N+gfVUAmUgTFY9S6YYb5pTayRLqoMKH1BfCrhXIBsv/cpi37AbY8JZ4sSvv1zvr0XprOkQSsHdllR+Sc4QrWFmv4h+as5ZPCB7cMbjedocRonazzVMHIENyhX/BrD+EAJobM2OduTVwv3ci0gPRhTdaURx1oicdQbI1CS5k3hFwmA4UNvRMeFzcalK0M6UfodzkoPXcAfYpvX4SHwxu1s8M318Q9JGPT5H5G4spnZNUxF6llue98FL2aNLF1DlAYDi6uzPe5vj1Z3/g5eWcdL877C9Z8oWALkfVe1T/608YdnxET5JsyF06o3T4ZiB7HSnsqxWMDDBBKfjFN6Rc/oD/Sq1W4bDboVjfi0at8TArMwUoj3g++DtLXa46g+03g3mGGYkUWxyuBXTc7upNY1lVyjKN+oSd+2vQ7ttQQV2MJX1hVBGsN82hYwQ8YX4AY1ZKrj3Qx5gC5+I+02k8a85PjOHCKMPb7qKFSy");
            delegateObject         = new ArchitectDelegate(this);
            architectView.Delegate = delegateObject;
            architectView.TranslatesAutoresizingMaskIntoConstraints = false;
            Add(architectView);

            architectView.CenterXAnchor.ConstraintEqualTo(View.CenterXAnchor).Active = true;
            architectView.CenterYAnchor.ConstraintEqualTo(View.CenterYAnchor).Active = true;
            architectView.WidthAnchor.ConstraintEqualTo(View.WidthAnchor).Active     = true;
            architectView.HeightAnchor.ConstraintEqualTo(View.HeightAnchor).Active   = true;

            NavigationController.Delegate = new NavigationControllerDelegate(architectView);

            EdgesForExtendedLayout = UIRectEdge.None;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            NSError error;

            if (WTArchitectView.IsDeviceSupportedForRequiredFeatures(WTFeatures.WTFeature_2DTracking | WTFeatures.Geo, out error))
            {
                arView       = new WTArchitectView();
                arView.Frame = UIScreen.MainScreen.Bounds;

                // ライセンスキーについては、SecrecKey.csに定義されていますが、Githubでは、公開されていません。別途定義してください。
                //public class SecretKey{
                //	public static string WT_LICENSE_KEY = "XXXXXXXXXX";
                //}
                arView.SetLicenseKey(SecretKey.WT_LICENSE_KEY);

                var url = NSBundle.MainBundle.BundleUrl.AbsoluteString + "ARchitectWorld/index.html";
                architectWorldNavigation = arView.LoadArchitectWorldFromURL(new NSUrl(url), WTFeatures.WTFeature_2DTracking | WTFeatures.Geo);

                View.AddSubview(arView);
            }
        }
 public override void InvokedURL(WTArchitectView architectView, NSUrl url)
 {
     Console.WriteLine("architect view invoked url: " + url);
 }
 public override void DidFailToLoadNavigation(WTArchitectView architectView, WTNavigation navigation, NSError error)
 {
     Console.WriteLine("architect view failed to load navigation. " + error.LocalizedDescription);
 }
 public override void DidFinishLoadNavigation(WTArchitectView architectView, WTNavigation navigation)
 {
     Console.WriteLine("architect view loaded navigation: " + navigation.OriginalURL);
 }
Example #23
0
 public override void DidFinishLoadNavigation(WTArchitectView architectView, WTNavigation navigation)
 {
     Console.WriteLine("Finished loading Architect World");
     arExperienceViewController.ArchitectWorldFinishedLoading(navigation);
 }
Example #24
0
 public override UIViewController PresentingViewControllerForViewControllerPresentationInArchitectView(WTArchitectView architectView)
 {
     return(arExperienceViewController);
 }
Example #25
0
 public NavigationControllerDelegate(WTArchitectView architectView)
 {
     this.architectView = architectView;
 }