onProgressChanged property
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebChromeClient.onProgressChanged', apiUrl: 'https://developer.android.com/reference/android/webkit/WebChromeClient#onProgressChanged(android.webkit.WebView,%20int)'), IOSPlatform(), MacOSPlatform(), WindowsPlatform(), LinuxPlatform(apiName: 'WebKitWebView::notify::estimated-load-progress', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/property.WebView.estimated-load-progress.html')])
final
Event fired when the current progress of loading a page is changed.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onProgressChanged)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit (Official API - WebKitWebView::notify::estimated-load-progress)
Parameters - Officially Supported Platforms/Implementations:
progress: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebChromeClient.onProgressChanged',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebChromeClient#onProgressChanged(android.webkit.WebView,%20int)',
),
IOSPlatform(),
MacOSPlatform(),
WindowsPlatform(),
LinuxPlatform(
apiName: 'WebKitWebView::notify::estimated-load-progress',
apiUrl:
'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/property.WebView.estimated-load-progress.html',
),
],
)
final void Function(T controller, int progress)? onProgressChanged;