コード例 #1
0
        public LandingPageRenderer()
        {
            UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Slide);
            RedLaserViewController redLaserVC = new RedLaserViewController();

            MessagingCenter.Subscribe <LandingPage> (this, "RedLaserScan", (sender) => {
                // do something whenever the "Hi" message is sent
                redLaserVC.PrepareToScan();
                PresentViewController(redLaserVC, true, new Action(() => {
//					this.DismissModalViewController(true);
                }));
            });
        }
コード例 #2
0
		public LandingPageRenderer ()
		{
			UIApplication.SharedApplication.SetStatusBarHidden (true, UIStatusBarAnimation.Slide);
			RedLaserViewController redLaserVC = new RedLaserViewController ();

 			MessagingCenter.Subscribe<LandingPage> (this, "RedLaserScan", (sender) => {
				// do something whenever the "Hi" message is sent
				redLaserVC.PrepareToScan ();
				PresentViewController (redLaserVC, true, new Action(()=>{
//					this.DismissModalViewController(true);
				}));
			});
		}