Пример #1
0
        /// <summary>
        /// Forwarder for URLs in the WebView
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">E.</param>
        public void OnChange(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
        {
            var url  = e.Url;
            var prms = WebParams.FromUrl(url);

            if (prms == null)
            {
                return;
            }
            if (prms.Status == Param.APPROVED)
            {
                this.onSuccessCallback(prms);
                return;
            }

            if (prms.Status == Param.AUTHORIZED)
            {
                this.onAuthorizeCallback(prms);
                return;
            }

            if (prms.Status == Param.FAILED || prms.Status == Param.DECLINED)
            {
                this.onFailCallback(prms);
                return;
            }
            if (prms.Status == Param.UNKNOWN)
            {
                return;
            }
        }
Пример #2
0
 async void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     await DisplayAlert("Completado",
                        "Se ha completado la carga de la pagina",
                        "OK"
                        );
 }
Пример #3
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     if (Device.RuntimePlatform == Device.Android)
     {
         viewModel.Carregando = false;
     }
 }
		public override void LoadingFinished (UIWebView webView)
		{
			var url = webView.Request.Url.AbsoluteUrl.ToString ();
			var args = new WebNavigatedEventArgs (lastEvent, formsWebView.Source, url, WebNavigationResult.Success);

			Navigated (formsWebView, args);
		}
        void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
        {
            activityIndicator.IsRunning = false;

            //var name = "Jimmy";
            //webView.Eval(string.Format("JsSayHello('{0}')", name));
            //webView.Eval("CreateChart([ 200, 100, 300]);");
        }
		public override void OnPageFinished (Android.Webkit.WebView view, string url)
		{
			var source = new UrlWebViewSource{ Url = url };
			var args = new WebNavigatedEventArgs (WebNavigationEvent.NewPage, source, url, WebNavigationResult.Success);

			Navigated (formsWebView, args);
			base.OnPageFinished (view, url);
		}
Пример #7
0
        internal void SendNavigated(WebNavigatedEventArgs args)
        {
            EventHandler <WebNavigatedEventArgs> handler = Navigated;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Пример #8
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     Title = string.Empty;
     progress.IsVisible = false;
     Debug.WriteLine("Web display ===========> " + e.Url);
     if (e.Url == "http://35.197.153.92/Success/Redirect")
     {
         Application.Current.MainPage = new NavigationPage(new Mainpage(_profile, _deviceId, _serialSim, _version));
     }
 }
 void OnBrowserNavigated(object sender, WebNavigatedEventArgs e)
 {
     // Hide and display the Back button by comparing current location vs. initial URL because
     // using CanGoBack was not working as expected.
     var currentSource = browser.Source as UrlWebViewSource;
     if (currentSource.Url != calendarUri.AbsoluteUri)
     {
         backBtn.IsEnabled = true;
     }
     else
     {
         backBtn.IsEnabled = false;
     }
 }
Пример #10
0
        async void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
        {
            var canGoBack     = webview.CanGoBack;
            var canGoFormware = webview.CanGoForward;

            await DisplayAlert("Estado",
                               "se ha terminado de cargar la pagina",
                               "Aceptar");

            if (canGoBack)
            {
                webview.GoBack();
            }
        }
Пример #11
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     loadingIndicator.IsVisible = false;
     loadingIndicator.IsRunning = false;
     refreshButton.IsVisible    = true;
 }
Пример #12
0
 void IWebViewController.SendNavigated(WebNavigatedEventArgs args)
 {
     Navigated?.Invoke(this, args);
 }
Пример #13
0
 void webOnEndNavigating(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     lblStatus.Text = "Web navigating ended";
 }
Пример #14
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     LoadingLabel.IsVisible = false;
 }
Пример #15
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     viewModel.CurrentUrl = e.Url;
 }
Пример #16
0
 async void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     await userLicanceViewModel.onFinish();
 }
Пример #17
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     //throw new NotImplementedException();
     xActivityIndicator.IsRunning = false;
 }
 void OnNavigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     WebPageViewModel.IsBusy = false;
 }
Пример #19
0
		internal void SendNavigated(WebNavigatedEventArgs args)
		{
			EventHandler<WebNavigatedEventArgs> handler = Navigated;
			if (handler != null)
				handler(this, args);
		}
		public static void NewEventHandler(object sender, WebNavigatedEventArgs e)
		{
			Console.WriteLine("[Forms WebView] {0}", e.Url.ToString());
		}
Пример #21
0
 async void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     await DisplayAlert("¡Perfecto!", "La página web ha cargado", "Aceptar");
 }
Пример #22
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     progressBar.IsVisible = false;
     progressBar.IsRunning = false;
 }
Пример #23
0
 public void SendNavigated(WebNavigatedEventArgs args)
 {
     Navigated?.Invoke(this, args);
 }
 void SiteLoaded(object sender, WebNavigatedEventArgs e)
 {
     this.Title = title;
     //LoadingLabel.IsVisible = false;
 }
Пример #25
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     browser.IsVisible = true;
     load.IsRunning    = false;
     load.IsVisible    = false;
 }
Пример #26
0
 void Handle_Navigated(object sender, Xamarin.Forms.WebNavigatedEventArgs e)
 {
     overlay.IsVisible = false;
 }
		/// <summary>
		/// Called when the webview finished navigating. Hides the loading label.
		/// </summary>
		void webviewNavigated (object sender, WebNavigatedEventArgs e)
		{
			this.labelLoading.IsVisible = false;
		}
		/// <summary>
		/// Called when the webview finished navigating. Hides the loading label.
		/// </summary>
		void webviewNavigated(object sender, WebNavigatedEventArgs e)
		{
			this.labelLoading.IsVisible = false; //remove the loading indicator when navigating is finished
		}