WebSettings class

Settings for configuring a WebViewPlatform.

Initial settings are passed as part of CreationParams, settings updates are sent with WebViewPlatform#updateSettings.

The userAgent parameter must not be null.

Constructors

WebSettings({JavascriptMode? javascriptMode, bool? hasNavigationDelegate, bool? hasProgressTracking, bool? debuggingEnabled, bool? gestureNavigationEnabled, bool? allowsInlineMediaPlayback, bool? zoomEnabled, required WebSetting<String?> userAgent})
Construct an instance with initial settings. Future setting changes can be sent with WebviewPlatform#updateSettings.

Properties

allowsInlineMediaPlayback bool?
Whether to play HTML5 videos inline or use the native full-screen controller on iOS.
final
debuggingEnabled bool?
Whether to enable the platform's webview content debugging tools.
final
gestureNavigationEnabled bool?
Whether to allow swipe based navigation in iOS.
final
hashCode int
The hash code for this object.
no setterinherited
hasNavigationDelegate bool?
Whether the WebView has a NavigationDelegate set.
final
hasProgressTracking bool?
Whether the WebView should track page loading progress. See also: WebViewPlatformCallbacksHandler.onProgress to get the progress.
final
javascriptMode JavascriptMode?
The JavaScript execution mode to be used by the webview.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent WebSetting<String?>
The value used for the HTTP User-Agent: request header.
final
zoomEnabled bool?
Sets whether the WebView should support zooming using its on-screen zoom controls and gestures.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited