WebView Configuration
The webview configuration class Boson\WebView\WebViewCreateInfo
is optional and serves as a convenient way to define default settings for webview of main window instance.
Default User Agent
Sets a custom user agent string for the WebView.
Storage (Persistent Client Settings)
Configures persistent storage settings for the WebView.
If storage is enabled, persistent settings will be saved between different app executions, such as saved passwords, history, and other data shared across browsers.
The storage value can take on different types:
false
- The storage will be disabled.null
- The storage will be enabled and directory will be determined automatically based on the current working directory.string
- The storage will be enabled and directory will be based on the passed argument.
Extra Flags
Sets additional WebView configuration flags.
These are additional platform-dependent launch flags and their behavior may differ on different platforms.
For WebView2 list of all available flags can be found on MSDN and chromium.org
For WebkitGTK list of all available flags can be found at webkitgtk.org
For WKWebView list of all available flags can be found at developer.apple.com
Context Menu
Controls whether the default context menu (right mouse button) is enabled.
Dev Tools
Enables or disables developer tools for the WebView.
The developer tools settings can take one of the following values:
true
- Enables developer tools window.false
- Disables developer tools window.null
- Depends on the applicationdebug
settings. Developer tools will be enabled if debug is enabled and vice versa.