示例#1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
                        #if DEBUG
            log("FinishedLaunching with NSDictionary");
                        #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow(UIScreen.MainScreen.Bounds);

            viewController            = this.BindCustomViewController();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible();

            this.SetDataDetectorTypes();

            // remove all cache content (testing purposes)
            //NSUrlCache.SharedCache.RemoveAllCachedResponses();

            InitializeUnity();

            this.DetectWebViewLoadFinishedEvent(application, launchOptions);

            return(true);
        }
示例#2
0
        public override void FinishedLaunching(UIApplication application)
        {
                        #if DEBUG
            log("FinishedLaunching");
                        #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow(UIScreen.MainScreen.Bounds);

            viewController            = this.BindCustomViewController();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible();

            this.SetDataDetectorTypes();

            InitializeUnity();
        }
示例#3
0
        public override void FinishedLaunching(UIApplication application)
        {
                        #if DEBUG
            log("FinishedLaunching");
                        #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow(UIScreen.MainScreen.Bounds);

            viewController            = new UnityUI_iOSViewController();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible();

            // do not detect data types automatically (phone links, etc)
            MainViewController().webView.DataDetectorTypes = UIDataDetectorType.None;

            InitializeUnity();
        }
示例#4
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
                        #if DEBUG
            log("FinishedLaunching with NSDictionary");
                        #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow(UIScreen.MainScreen.Bounds);

            viewController            = new UnityUI_iOSViewController();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible();

            // do not detect data types automatically (phone links, etc)
            MainViewController().webView.DataDetectorTypes = UIDataDetectorType.None;

            // remove all cache content (testing purposes)
            //NSUrlCache.SharedCache.RemoveAllCachedResponses();

            InitializeUnity();

            UIApplicationState applicationState = application.ApplicationState;

            MainUIWebView().LoadFinished += delegate {
#if DEBUG
                log("************** WEBVIEW LOAD FINISHED");
#endif
                // The NSDictionary options variable would contain any notification data if the user clicked the 'view' button on the notification
                // to launch the application.
                // This method processes these options from the FinishedLaunching, as well as the ReceivedRemoteNotification methods.
                processNotification(launchOptions, true, applicationState);

                // Processing extra data received when launched externally (using custom scheme url)
                processLaunchData();
            };

            return(true);
        }
示例#5
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launcOptions)
        {
            #if DEBUG
            log ("FinishedLaunching with NSDictionary");
            #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow (UIScreen.MainScreen.Bounds);

            viewController = new UnityUI_iOSViewController ();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible ();

            // do not detect data types automatically (phone links, etc)
            MainViewController().webView.DataDetectorTypes = UIDataDetectorType.None;

            // remove all cache content (testing purposes)
            //NSUrlCache.SharedCache.RemoveAllCachedResponses();

            InitializeUnity ();

            UIApplicationState applicationState = application.ApplicationState;

            MainUIWebView().LoadFinished += delegate {
            #if DEBUG
                log ("************** WEBVIEW LOAD FINISHED");
            #endif
            // The NSDictionary options variable would contain any notification data if the user clicked the 'view' button on the notification
            // to launch the application.
            // This method processes these options from the FinishedLaunching, as well as the ReceivedRemoteNotification methods.
                processNotification(launcOptions, true, applicationState);

                // Processing extra data received when launched externally (using custom scheme url)
                processLaunchData();

            };

            return true;
        }
示例#6
0
        public override void FinishedLaunching(UIApplication application)
        {
            #if DEBUG
            log ("FinishedLaunching");
            #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow (UIScreen.MainScreen.Bounds);

            viewController = new UnityUI_iOSViewController ();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible ();

            // do not detect data types automatically (phone links, etc)
            MainViewController().webView.DataDetectorTypes = UIDataDetectorType.None;

            InitializeUnity ();
        }
示例#7
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            #if DEBUG
            log ("FinishedLaunching with NSDictionary");
            #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow (UIScreen.MainScreen.Bounds);

            viewController = this.BindCustomViewController ();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible ();

            this.SetDataDetectorTypes ();

            // remove all cache content (testing purposes)
            //NSUrlCache.SharedCache.RemoveAllCachedResponses();

            InitializeUnity ();

            this.DetectWebViewLoadFinishedEvent(application, launchOptions);

            return true;
        }
示例#8
0
        public override void FinishedLaunching(UIApplication application)
        {
            #if DEBUG
            log ("FinishedLaunching");
            #endif
            //MainAppWindow ().AddSubview (MainViewController ().View);
            //MainAppWindow ().MakeKeyAndVisible ();

            window = new UIWindow (UIScreen.MainScreen.Bounds);

            viewController = this.BindCustomViewController ();
            window.RootViewController = viewController;
            window.MakeKeyAndVisible ();

            this.SetDataDetectorTypes ();

            InitializeUnity ();
        }
示例#9
0
		public override void FinishedLaunching (UIApplication application)
		{
			#if DEBUG
			log ("FinishedLaunching");
			#endif

			// inform other weak delegates (if exist) about the application finished launching event
			IPhoneServiceLocator.FinishedLaunching(application, null);

			//MainAppWindow ().AddSubview (MainViewController ().View);
			//MainAppWindow ().MakeKeyAndVisible ();

			window = new UIWindow (UIScreen.MainScreen.Bounds);
			
			viewController = this.BindCustomViewController ();
			window.RootViewController = viewController;
			window.MakeKeyAndVisible ();

			this.SetDataDetectorTypes ();

			InitializeUnity ();
		}