setWebContentsDebuggingEnabled method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.setWebContentsDebuggingEnabled', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#setWebContentsDebuggingEnabled(boolean)')])
- bool debuggingEnabled
Enables debugging of web contents (HTML / CSS / JavaScript) loaded into any WebViews of this application.
This flag can be enabled in order to facilitate debugging of web layouts and JavaScript code running inside WebViews.
Please refer to WebView documentation for the debugging guide. The default is false.
debuggingEnabled whether to enable web contents debugging.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.setWebContentsDebuggingEnabled)
Parameters - Officially Supported Platforms/Implementations:
debuggingEnabled: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebView.setWebContentsDebuggingEnabled',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebView#setWebContentsDebuggingEnabled(boolean)',
),
],
)
Future<void> setWebContentsDebuggingEnabled(bool debuggingEnabled) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.setWebContentsDebuggingEnabled.name} is not implemented on the current platform',
);
}