pause method
Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation. Note that this call does not pause JavaScript. To pause JavaScript globally, use PlatformInAppWebViewController.pauseTimers. To resume WebView, call resume.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.onPause)
- Windows WebView2 (Official API - ICoreWebView2_3.TrySuspend)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> pause() => platform.pause();