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 native WebView (Official API - WebView.onPause)
- Windows (Official API - ICoreWebView2_3.TrySuspend
Implementation
@override
Future<void> pause() async {
Map<String, dynamic> args = <String, dynamic>{};
await channel?.invokeMethod('pause', args);
}