protected override void DisconnectHandler(AWebView nativeView)
        {
            nativeView.StopLoading();

            _webViewClient?.Dispose();
            _webChromeClient?.Dispose();
        }
示例#2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _webViewClient?.Dispose();
         _webChromeClient?.Dispose();
     }
     base.Dispose(disposing);
 }
示例#3
0
        protected override void DisconnectHandler(BlazorAndroidWebView platformView)
        {
            platformView.StopLoading();

            if (_webviewManager != null)
            {
                // Dispose this component's contents and block on completion so that user-written disposal logic and
                // Blazor disposal logic will complete.
                _webviewManager?
                .DisposeAsync()
                .AsTask()
                .GetAwaiter()
                .GetResult();

                _webviewManager = null;
            }

            _webViewClient?.Dispose();
            _webChromeClient?.Dispose();
        }