run method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(requiresSameOrigin: false, note: 'It will append a new `iframe` to the body.'), WindowsPlatform(), LinuxPlatform()])
Runs the headless WebView.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe>:
- It will append a new
iframeto the body.
- It will append a new
- Windows WebView2
- Linux WPE WebKit
Use the PlatformHeadlessInAppWebView.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
MacOSPlatform(),
WebPlatform(
requiresSameOrigin: false,
note: 'It will append a new `iframe` to the body.',
),
WindowsPlatform(),
LinuxPlatform(),
],
)
Future<void> run() {
throw UnimplementedError('run is not implemented on the current platform');
}