getFrameId method
- @SupportedPlatforms.new(platforms: [WindowsPlatform(apiName: 'ICoreWebView2_20.get_FrameId', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_20?view=webview2-1.0.2849.39#get_frameid')])
Gets the ID of the main frame.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_20.get_FrameId)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
WindowsPlatform(
apiName: 'ICoreWebView2_20.get_FrameId',
apiUrl:
'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_20?view=webview2-1.0.2849.39#get_frameid',
),
],
)
Future<int?> getFrameId() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.getFrameId.name} is not implemented on the current platform',
);
}