Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var condition = Intent.GetStringExtra("condition");

            SetContentView(Resource.Layout.Main);
            var webView = FindViewById <WebView>(Resource.Id.webView);


            var loginController = new LoginController(new HybridWebView(webView, this));

            RouteHandler.RegisterController("Login", loginController);

            var meetingController = new MeetingController(new HybridWebView(webView, this));

            RouteHandler.RegisterController("Meeting", meetingController);

            var verificationController = new VerificationController(new HybridWebView(webView, this));

            RouteHandler.RegisterController("Verification", verificationController);

            var supervisionController = new SupervisionController(new HybridWebView(webView, this));

            RouteHandler.RegisterController("Supervision", supervisionController);

            var syncController = new SyncController(new HybridWebView(webView, this));

            RouteHandler.RegisterController("Sync", syncController);

            loginController.Index(condition);
        }
 public override bool ShouldOverrideUrlLoading(WebView webView, string url)
 {
     return(RouteHandler.HandleRequest(url));
 }