isMultiProcessEnabled method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebViewCompat.isMultiProcessEnabled', apiUrl: 'https://developer.android.com/reference/androidx/webkit/WebViewCompat#isMultiProcessEnabled()', note: 'This method should only be called if [WebViewFeature.isFeatureSupported] returns `true` for [WebViewFeature.MULTI_PROCESS].')])
Returns true if WebView is running in multi process mode.
In Android O and above, WebView may run in "multiprocess" mode. In multiprocess mode, rendering of web content is performed by a sandboxed renderer process separate to the application process. This renderer process may be shared with other WebViews in the application, but is not shared with other application processes.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.isMultiProcessEnabled):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.MULTI_PROCESS.
- This method should only be called if WebViewFeature.isFeatureSupported returns
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebViewCompat.isMultiProcessEnabled',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/WebViewCompat#isMultiProcessEnabled()',
note:
'This method should only be called if [WebViewFeature.isFeatureSupported] returns `true` for [WebViewFeature.MULTI_PROCESS].',
),
],
)
Future<bool> isMultiProcessEnabled() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.isMultiProcessEnabled.name} is not implemented on the current platform',
);
}