Пример #1
0
            public override void OnPageStarted(WebView view, string url, Android.Graphics.Bitmap favicon)
            {
                var uri = new Uri(url);

                activity.state.Authenticator.OnPageLoading(uri);
                activity.BeginProgress(uri.Authority);
            }
            /// <summary>
            /// On the page started.
            /// </summary>
            /// <param name="view">View.</param>
            /// <param name="url">URL.</param>
            /// <param name="favicon">Favicon.</param>
            public override void OnPageStarted(WebView view, string url, global::Android.Graphics.Bitmap favicon)
            {
                view.Settings.UserAgentString = WebViewConfiguration.Android.UserAgent;

                var uri = new Uri(url);

                activity.state.Authenticator.OnPageLoading(uri);
                activity.BeginProgress(uri.Authority);

                return;
            }
            public override void OnPageStarted(WebView view, string url, Android.Graphics.Bitmap favicon)
            {
                var uri = new Uri(url);

                view.LoadUrl("javascript:var resp=document.getElementsByName('SAMLResponse'); if(resp[0] && resp[0].value) { window.jsInterceptor.OnReceivedSamlResponse(resp[0].value); }");
//				view.LoadUrl ("javascript:var resp=document.getElementsByTagName('input'); if(resp[0]){alert(resp[0].value);} if(resp[0] && resp[0].value) { window.jsInterceptor.OnReceivedSamlResponse(resp[0].value); }");
//				view.LoadUrl ("javascript:alert(document.forms[0].value);");

//				activity.state.Authenticator.OnPageLoading (uri, formParams);
                activity.BeginProgress(uri.Authority);
            }