protected override void DisconnectHandler(AWebView nativeView) { nativeView.StopLoading(); _webViewClient?.Dispose(); _webChromeClient?.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { _webViewClient?.Dispose(); _webChromeClient?.Dispose(); } base.Dispose(disposing); }
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(); }