saveState method
Returns the current state of interaction in a web view so that you can restore that state later to another web view using the restoreState method.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.saveState):
- This method doesn't store the display data for this WebView.
- iOS WKWebView 15.0+ (Official API - WKWebView.interactionState)
- macOS WKWebView 12.0+ (Official API - WKWebView.interactionState)
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<Uint8List?> saveState() => platform.saveState();