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, @required WebSetting<String> userAgent})
Construct an instance with initial settings. Future setting changes can be sent with WebviewPlatform#updateSettings. [...]

Properties

debuggingEnabled → bool
Whether to enable the platform's webview content debugging tools. [...]
final
gestureNavigationEnabled → bool
Whether to allow swipe based navigation in iOS. [...]
final
hasNavigationDelegate → bool
Whether the WebView has a NavigationDelegate set.
final
hasProgressTracking → bool
Whether the WebView should track page loading progress.
final
javascriptMode JavascriptMode
The JavaScript execution mode to be used by the webview.
final
userAgent WebSetting<String>
The value used for the HTTP User-Agent: request header. [...]
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited