isInterfaceSupported method

Future<bool> isInterfaceSupported(
  1. 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

Future<bool> isInterfaceSupported(WebViewInterface interface) =>
    platform.isInterfaceSupported(interface);