Platforms to show: All Mac Windows Linux Cross-Platform
Back to WKWebViewMBS class.
WKWebViewMBS.allowFileAccessFromFileURLs as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Access to files is allowed for some files.
Please check WebKit documentation for details.
Set allowFileAccessFromFileURLs and allowUniversalAccessFromFileURLs to true to disable all the security checks to block local file access for websites. allowUniversalAccessFromFileURLs would allow all file URLs. allowFileAccessFromFileURLs would only allow in same path.
(Read and Write property)
WKWebViewMBS.allowsBackForwardNavigationGestures as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The default value is false.
(Read and Write property)
WKWebViewMBS.allowsLinkPreview as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read and Write property)
WKWebViewMBS.allowsMagnification as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The default value is false. You can set the magnification property even if allowsMagnification is set to false.
For MacOS 64-bit only.
(Read and Write property)
WKWebViewMBS.allowUniversalAccessFromFileURLs as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Any file URL will be loaded if true.
Please check WebKit documentation for details.
Does not work in MacOS 10.14.
(Read and Write property)
WKWebViewMBS.backForwardList as WKWebViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
WKWebViewMBS.backgroundColor as NSColorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
If background is not drawn and/or transparent, you may see through.
Requires also CSS to have web view page transparent.
(Read and Write property)
WKWebViewMBS.CanGoBack as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
WKWebViewMBS.CanGoForward as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
WKWebViewMBS.Configuration as WKWebViewConfigurationMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
WKWebViewMBS.customUserAgent as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
If no custom user agent string has been set, this is set to "".
Available in 32-bit. Available in 64-bit for macOS 10.11 or newer.
(Read and Write property)
WKWebViewMBS.developerExtrasEnabled as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Enables the context menu to inspect items.
(Read and Write property)
WKWebViewMBS.drawsBackground as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
If background is not drawn and/or transparent, you may see through.
Requires also CSS to have web view page transparent.
(Read and Write property)
WKWebViewMBS.EstimatedProgress as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This value ranges from 0.0 to 1.0 based on the total number of bytes expected to be received, including the main document and all of its potential subresources. After a navigation loading completes, the estimatedProgress remains at 1.0 until a new navigation starts, at which point the estimatedProgress is reset to 0.0.
(Read only property)
WKWebViewMBS.hasOnlySecureContent as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Only set for 64-bit, always false on 32-bit.
(Read only property)
WKWebViewMBS.HTTPCookieStore as WKHTTPCookieStoreMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
WKWebViewMBS.IsLoading as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
WKWebViewMBS.javaEnabled as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read and Write property)
WKWebViewMBS.javaScriptCanOpenWindowsAutomatically as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read and Write property)
WKWebViewMBS.javaScriptEnabled as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Error is only set with 64-bit, not with 32-bit.
Tag is passed from EvaluateJavaScript call.
(Read and Write property)
WKWebViewMBS.loadsImagesAutomatically as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read and Write property)
WKWebViewMBS.magnification as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The default value is 1.0.
For MacOS 64-bit only.
(Read and Write property)
WKWebViewMBS.mediaType as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The value of mediaType will override the normal value of the CSS media property.
Setting the value to "" will restore the normal value.
The default value is "".
Available in macOS 11.0 or newer.
(Read and Write property)
WKWebViewMBS.MIMEType as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Should be "text/html" for a website or "application/pdf" for a PDF document.
(Read only property)
WKWebViewMBS.minimumFontSize as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read and Write property)
WKWebViewMBS.pageZoom as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The default value is 1.0.
Changing this value is equivalent to web content setting the CSS "zoom" property on all page content.
Available in macOS 11.0 or newer.
(Read and Write property)
WKWebViewMBS.plugInsEnabled as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read and Write property)
WKWebViewMBS.Preferences as WKPreferencesMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
WKWebViewMBS.privateBrowsing as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
If enabled, no data should be stored for cookies or cache on disk, so it's cleared when web viewer is destroyed.
Default is non-private mode for the web viewer.
It looks like you can't change mode after web viewer was created.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | WebKit2 | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This is the URL that should be reflected in the user interface.
(Read only property)
The items on this page are in the following plugins: MBS Mac64bit Plugin.
