onCloseWindow method
Event fired when the host application should close the given WebView and remove it from the view system if necessary. At this point, WebCore has stopped any loading in this window and has removed any cross-scripting ability in javascript.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebChromeClient.onCloseWindow)
- iOS (Official API - WKUIDelegate.webViewDidClose)
- MacOS (Official API - WKUIDelegate.webViewDidClose)
- Windows (Official API - ICoreWebView2.add_WindowCloseRequested)
Implementation
@override
void onCloseWindow() {}