setContextMenu method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform()])
- ContextMenu? contextMenu
Sets or updates the WebView context menu to be used next time it will appear.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
contextMenu: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform()],
)
Future<void> setContextMenu(ContextMenu? contextMenu) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.setContextMenu.name} is not implemented on the current platform',
);
}