isInterfaceSupported method
- @SupportedPlatforms.new(platforms: [WindowsPlatform()])
- WebViewInterface interface
Returns true if the WebView Environment supports the specified interface, otherwise false.
Only the ones related to WebViewInterface.ICoreWebView2Environment are valid interfaces to check;
otherwise, it will always return false.
Officially Supported Platforms/Implementations:
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
interface: all platforms
Use the PlatformWebViewEnvironment.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(platforms: [WindowsPlatform()])
Future<bool> isInterfaceSupported(WebViewInterface interface) async {
throw UnimplementedError(
'isInterfaceSupported is not implemented on the current platform',
);
}