createWebArchiveData method
Creates a web archive of the web view’s current contents asynchronously.
Returns null if a problem occurred.
Officially Supported Platforms/Implementations:
- iOS WKWebView 14.0+ (Official API - WKWebView.createWebArchiveData)
- macOS WKWebView 11.0+ (Official API - WKWebView.createWebArchiveData)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<Uint8List?> createWebArchiveData() => platform.createWebArchiveData();