Platforms to show: All Mac Windows Linux Cross-Platform

WKWebViewIOSControlMBS.Close
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: The webviewer should close.
Notes:
Notifies your app that the DOM window object's close() method completed successfully.

Your app should remove the web view from the view hierarchy and update the UI as needed, such as by closing the containing browser tab or window.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.CreateWebView(URL as String, request as NSURLRequestMBS) as WKWebViewIOSControlMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Creates a new web view.
Notes:
If needed we can add configuration, windowFeatures and navigationAction parameters in future version.

Return a web viewer control or nil.

The web view returned must be created with the specified configuration. WebKit will load the request in the returned web view.

If you do not implement this method or return nil, the web view will cancel the navigation.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.decidePolicyForNavigationAction(URL as String, NavigationType as String, newWindow as boolean, frameName as string, request as NSURLRequestMBS) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Decides whether to allow or cancel a navigation.
Notes:
Return true to cancel or false to allow.
URL is the URL to load.
NavigationType defines what navigation is happening: LinkClicked, FormSubmitted, BackForward, Reload, FormResubmitted or Other.
modifierFlags: The keyboard modifiers.
buttonNumber: Which mouse button was clicked: 0 for left button, 1 for middle button, 2 for right button
newWindow: True if a new window should be opened or false if not.
frameName: The frame name. (32-bit only)
request: the URL request. (added in v20.0)

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.decidePolicyForNavigationResponse(navigationResponse as WKNavigationResponseMBS) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Decides whether to allow or cancel a navigation after its response is known.
Notes:
navigationResponse: Descriptive information about the navigation response.

Return true to block or return false to allow.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.didCommitNavigation(navigation as WKNavigationMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Invoked when content starts arriving for the main frame.
Notes:
Added navigation parameter with version 20.3.
Sets Navigation property.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.didFailNavigation(navigation as WKNavigationMBS, Error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Invoked when an error occurs during a committed main frame navigation.
Notes: Sets Navigation property.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.didFailProvisionalNavigation(navigation as WKNavigationMBS, Error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Invoked when an error occurs while starting to load data for the main frame.
Notes:
Added navigation parameter with version 20.3.
Sets Navigation property.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.didFinishNavigation(navigation as WKNavigationMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Invoked when a main frame navigation completes.
Notes:
Added navigation parameter with version 20.3.
Sets Navigation property.
Same as DocumentComplete in HTMLViewer.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.didReceiveScriptMessage(Body as Variant, name as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Invoked when a script message is received from a webpage.
Notes:
body: The body of the message. Automatic translated from Javascript types.
name: The name of the message handler to which the message is sent.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.didReceiveServerRedirectForProvisionalNavigation(navigation as WKNavigationMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Invoked when a server redirect is received for the main frame.
Notes:
Added navigation parameter with version 20.3.
Sets Navigation property.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.didStartProvisionalNavigation(navigation as WKNavigationMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Invoked when a main frame navigation starts.
Notes:
Added navigation parameter with version 20.3.
Sets Navigation property.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.EstimatedProgressChanged(estimatedProgress as double, oldEstimatedProgress as double)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: The estimated progress for loading the webpage changed.
Notes: This event may be called often, so don't do much here!

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.GotFocus
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.JavaScriptEvaluated(JavaScript as String, Result as Variant, Error as NSErrorMBS, Tag as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: JavaScript was evaluated.
Notes:
Error is only set with 64-bit, not with 32-bit.
Tag is passed from EvaluateJavaScript call.

Result is converted from JavaScript data types to Xojo datatypes, usually variants, dictionaries or array of variants.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.LostFocus
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.runJavaScriptAlertPanel(message as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Displays a JavaScript alert panel.
Notes:
message: The message to display.

If you do not implement this method, the web view will behave as if the user selected the OK button.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.runJavaScriptConfirmPanel(message as String) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Displays a JavaScript confirm panel.
Notes:
message: The message to display.

Return true if the user chose OK, false if the user chose Cancel.

If you do not implement this method, the web view will behave as if the user selected the Cancel button.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.runJavaScriptTextInputPanel(prompt as String, defaultText as String) as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Displays a JavaScript text input panel.
Notes:
message: The message to display.
defaultText: The initial text to display in the text entry field.

Return the entered text if the user chose OK, otherwise "".

If you do not implement this method, the web view will behave as if the user selected the Cancel button.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.takeSnapshotCompleted(image as NSImageMBS, error as NSErrorMBS, tag as string)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: Called when snapshot of website is completed.
Notes: If snapshot creation failed, error is set.

Feedback, Comments & Corrections

WKWebViewIOSControlMBS.TitleChanged(Title as String, oldTitle as string)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Function: The title of the webpage changed.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Plugins

Start Chat