onPageCommitVisible property

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebViewClient.onPageCommitVisible', apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#onPageCommitVisible(android.webkit.WebView,%20java.lang.String)'), IOSPlatform(apiName: 'WKNavigationDelegate.webView', apiUrl: 'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455635-webview'), MacOSPlatform(apiName: 'WKNavigationDelegate.webView', apiUrl: 'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455635-webview'), LinuxPlatform(apiName: 'WebKitWebView::load-changed', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/signal.WebView.load-changed.html', note: 'Fired when WebKitLoadEvent is WEBKIT_LOAD_COMMITTED.')])
void Function(T controller, WebUri? url)? onPageCommitVisible
final

Called when the web view begins to receive web content.

This event occurs early in the document loading process, and as such you should expect that linked resources (for example, CSS and images) may not be available.

url represents the URL corresponding to the page navigation that triggered this callback.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • url: all platforms

Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebViewClient.onPageCommitVisible',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebViewClient#onPageCommitVisible(android.webkit.WebView,%20java.lang.String)',
    ),
    IOSPlatform(
      apiName: 'WKNavigationDelegate.webView',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455635-webview',
    ),
    MacOSPlatform(
      apiName: 'WKNavigationDelegate.webView',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455635-webview',
    ),
    LinuxPlatform(
      apiName: 'WebKitWebView::load-changed',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/signal.WebView.load-changed.html',
      note: 'Fired when WebKitLoadEvent is WEBKIT_LOAD_COMMITTED.',
    ),
  ],
)
final void Function(T controller, WebUri? url)? onPageCommitVisible;