isInterfaceSupported method
- @SupportedPlatforms.new(platforms: [WindowsPlatform()])
- WebViewInterface interface
Returns true if the WebView supports the specified interface, otherwise false.
Officially Supported Platforms/Implementations:
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
interface: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(platforms: [WindowsPlatform()])
Future<bool> isInterfaceSupported(WebViewInterface interface) async {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.isInterfaceSupported.name} is not implemented on the current platform',
);
}