getProcessInfos method
- @SupportedPlatforms.new(platforms: [WindowsPlatform(available: '1.0.1108.44+', apiName: 'ICoreWebView2Environment8.GetProcessInfos', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment8?view=webview2-1.0.2849.39#getprocessinfos')])
Returns the path of the folder where minidump files are written.
Whenever a WebView2 process crashes, a crash dump file will be created in the crash dump folder. The crash dump format is minidump files. Please see Minidump Files documentation for detailed information. Normally when a single child process fails, a minidump will be generated and written to disk, then the PlatformWebViewCreationParams.onProcessFailed event is raised. But for unexpected crashes, a minidump file might not be generated at all, despite whether PlatformWebViewCreationParams.onProcessFailed event is raised. If there are multiple process failures at once, multiple minidump files could be generated. Thus getFailureReportFolderPath could contain old minidump files that are not associated with a specific PlatformWebViewCreationParams.onProcessFailed event.
Officially Supported Platforms/Implementations:
- Windows WebView2 1.0.1108.44++ (Official API - ICoreWebView2Environment8.GetProcessInfos)
Use the PlatformWebViewEnvironment.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
WindowsPlatform(
available: '1.0.1108.44+',
apiName: 'ICoreWebView2Environment8.GetProcessInfos',
apiUrl:
'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment8?view=webview2-1.0.2849.39#getprocessinfos',
),
],
)
Future<List<BrowserProcessInfo>> getProcessInfos() async {
throw UnimplementedError(
'getProcessInfos is not implemented on the current platform',
);
}