Platforms to show: All Mac Windows Linux Cross-Platform

Back to WKWebViewIOSControlMBS control.

WKWebViewIOSControlMBS.allowFileAccessFromFileURLs as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
Allow file access for file URLs.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

browser.allowFileAccessFromFileURLs = True

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)

WKWebViewIOSControlMBS.allowsBackForwardNavigationGestures as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

browser.allowsBackForwardNavigationGestures = True

The default value is false.
Available for 64-bit on macOS 10.10 or newer.
(Read and Write property)

WKWebViewIOSControlMBS.allowsLinkPreview as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
A Boolean value that determines whether pressing on a link displays a preview of the destination for the link.
Example
Dim browser As WKWebViewMBS // your instance

browser.allowsLinkPreview = True

(Read and Write property)

WKWebViewIOSControlMBS.allowUniversalAccessFromFileURLs as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
Allow universal file access for URLs.

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)

WKWebViewIOSControlMBS.backForwardList as WKBackForwardListMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The web view's back-forward list.

(Read only property)

WKWebViewIOSControlMBS.CanGoBack as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
A Boolean value indicating whether there is a back item in the back-forward list that can be navigated to.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

MsgBox "CanGoBack: "+If(Browser.CanGoBack, "yes", "no")

(Read only property)

WKWebViewIOSControlMBS.CanGoForward as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
A Boolean value indicating whether there is a forward item in the back-forward list that can be navigated to.
Example
'Dim browser As WKWebViewIOSControlMBS // your instance

MsgBox "CanGoForward: "+If(Browser.CanGoForward, "yes", "no")

(Read only property)

WKWebViewIOSControlMBS.customUserAgent as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The custom user agent string.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

browser.customUserAgent = "MyBrowser/1.0"

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)

WKWebViewIOSControlMBS.developerExtrasEnabled as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
Whether developer extras are enabled.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

// enable context menu entry to show developer extras
browser.developerExtrasEnabled = True

For WebKit 2 (64bit) to enable the context menu to inspect items.
(Read and Write property)

WKWebViewIOSControlMBS.EstimatedProgress as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
An estimate of what fraction of the current navigation has been loaded.

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)

WKWebViewIOSControlMBS.hasOnlySecureContent as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
A Boolean value indicating whether all resources on the page have been loaded through securely encrypted connections.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

MsgBox "hasOnlySecureContent: "+If(Browser.hasOnlySecureContent, "yes", "no")

Only set for 64-bit, always false on 32-bit.
(Read only property)

WKWebViewIOSControlMBS.IsLoading as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
A Boolean value indicating whether the view is currently loading content.
Example

Dim browser As WKWebViewIOSControlMBS // your instance

// load a page
browser.LoadURL "https://www.mbsplugins.de/xojo"

// wait synchronously for website loading
While browser.IsLoading
DelayMBS 0.1
Wend

MsgBox "loaded"

(Read only property)

WKWebViewIOSControlMBS.javaScriptCanOpenWindowsAutomatically as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
Whether javascript can open new windows.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

// disable popup windows
Browser.javaScriptCanOpenWindowsAutomatically = False

(Read and Write property)

WKWebViewIOSControlMBS.javaScriptEnabled as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
Whether javascript is enabled.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

MsgBox "JavaScript Enabled: "+If(Browser.javaScriptEnabled, "yes", "no")

(Read and Write property)

WKWebViewIOSControlMBS.loadsImagesAutomatically as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
Whether to load images automatically.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

// disable loading of images
browser.loadsImagesAutomatically = False#

(Read and Write property)

WKWebViewIOSControlMBS.minimumFontSize as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The minimum font size to use.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

browser.minimumFontSize = 20

(Read and Write property)

WKWebViewIOSControlMBS.Navigation as WKNavigationMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The current navigation action.

(Read only property)

WKWebViewIOSControlMBS.privateBrowsing as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
Whether private browsing is enabled.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

MsgBox "privateBrowsing: "+If(Browser.privateBrowsing, "yes", "no")

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.

For WebKit 2.x, it looks like you can't change mode after web viewer was created.
So use UsePrivateBrowsing there.
(Read and Write property)

WKWebViewIOSControlMBS.Title as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The page title.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

MsgBox Browser.Title

(Read only property)

WKWebViewIOSControlMBS.URL as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The active URL.
Example
Dim browser As WKWebViewIOSControlMBS // your instance

MsgBox Browser.URL

This is the URL that should be reflected in the user interface.
(Read only property)

WKWebViewIOSControlMBS.View as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The used view.

Should be either a WKWebView (64bit).
(Read only property)

WKWebViewIOSControlMBS.WKWebView as WKWebViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes iOS only
The used WKWebViewMBS view.

Always a WKWebViewMBS in 64-bit, but nil for 32-bit applications.
(Read only property)

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...