getProgress method
Gets the progress for the current page. The progress value is between 0 and 100.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getProgress)
- iOS WKWebView (Official API - WKWebView.estimatedProgress)
- macOS WKWebView (Official API - WKWebView.estimatedProgress)
- Linux WPE WebKit (Official API - webkit_web_view_get_estimated_load_progress)
- Windows WebView2:
- Progress is tracked through navigation events: NavigationStarting (0), ContentLoading (33), DOMContentLoaded (66), NavigationCompleted (100).
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<int?> getProgress() => platform.getProgress();