Ejemplo n.º 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);
            }
Ejemplo n.º 2
0
 public override void OnReceivedError(WebView p0, IWebResourceRequest p1, WebResourceError p2)
 {
     base.OnReceivedError(p0, p1, p2);
 }