Example #1
0
            //[Obsolete("OnReceivedError is obsolete as of version 2.3.0. This method was deprecated in API level 23.")]
            //public override void OnReceivedError(AWebView view, ClientError errorCode, string description, string failingUrl)
            //{

            //}

            public override void OnReceivedError(AWebView view, Com.Tencent.Smtt.Export.External.Interfaces.IWebResourceRequest request, Com.Tencent.Smtt.Export.External.Interfaces.WebResourceError error)
            {
                _navigationResult = Xamarin.Forms.WebNavigationResult.Failure;
                if (error.ErrorCode == (int)Android.Webkit.ClientError.Timeout)
                {
                    _navigationResult = Xamarin.Forms.WebNavigationResult.Timeout;
                }
                base.OnReceivedError(view, request, error);
            }
Example #2
0
 public override void OnReceivedHttpError(WebView p0, IWebResourceRequest p1, WebResourceResponse p2)
 {
     base.OnReceivedHttpError(p0, p1, p2);
 }
Example #3
0
 public override WebResourceResponse ShouldInterceptRequest(WebView p0, IWebResourceRequest request)
 {
     return(ShouldInterceptRequest(p0, request.Url.ToString()));
 }