Platforms to show: All Mac Windows Linux Cross-Platform

Next items

WKWebViewControlMBS.BoundsChanged
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The event called when the bounds, but not the frame, changed.

Feedback, Comments & Corrections

WKWebViewControlMBS.Close
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.CreateWebView(URL as String, request as NSURLRequestMBS) as WKWebViewControlMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.decidePolicyForNavigationAction(URL as String, NavigationType as String, modifierFlags as Integer, buttonNumber as Integer, 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 16.5 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.decidePolicyForNavigationResponse(navigationResponse as WKNavigationResponseMBS) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No
Function: Will close contextual menu.

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

WKWebViewControlMBS.didFailProvisionalNavigation(navigation as WKNavigationMBS, Error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.0 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.didFinishNavigation(navigation as WKNavigationMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.0 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.didReceiveScriptMessage(Body as Variant, name as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 18.0 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.didReceiveServerRedirectForProvisionalNavigation(navigation as WKNavigationMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.0 ✅ Yes ❌ No ❌ No ❌ No
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

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

Feedback, Comments & Corrections

WKWebViewControlMBS.EnableMenuItems
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The event where you can enable menu items.

Feedback, Comments & Corrections

WKWebViewControlMBS.EstimatedProgressChanged(estimatedProgress as double, oldEstimatedProgress as double)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 19.0 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.FrameChanged
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The event called when the frame changed.
Notes: This event notifies you, that the control changed it's bounding frame, which is position and/or size.

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

WKWebViewControlMBS.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 16.5 ✅ Yes ❌ No ❌ No ❌ No
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

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

Feedback, Comments & Corrections

WKWebViewControlMBS.MenuAction(HitItem as MenuItem) As Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Called when a menuitem is choosen.
Notes: This allows the control to react on its relevant menu items. Please return true if you handled it or false to give others a chance.

Feedback, Comments & Corrections

WKWebViewControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The mouse button was pressed inside the control’s region at the location passed in to x, y.
Notes:
The coordinates x and y are local to the control, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.
Return True if you are going to handle the MouseDown. In such a case:
  • The Action event, if any, will not execute and the state of the object will not change.
  • You will receive the MouseDrag and MouseUp events.
If you return False, the system handles the MouseDown so the above event handlers do not get called.

Feedback, Comments & Corrections

WKWebViewControlMBS.MouseDrag(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: This event fires continuously after the mouse button was pressed inside the Control.
Notes:
Mouse location is local to the control passed in to x, y.
As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.

Feedback, Comments & Corrections

WKWebViewControlMBS.MouseUp(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The mouse button was released.
Notes: Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

Feedback, Comments & Corrections

WKWebViewControlMBS.runJavaScriptAlertPanel(message as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.runJavaScriptConfirmPanel(message as String) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.runJavaScriptTextInputPanel(prompt as String, defaultText as String) as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
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

WKWebViewControlMBS.ScaleFactorChanged(NewFactor as Double)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The backing store scale factor has changed.
Notes: Please invalidate any cached bitmaps or other relevant state.

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

Next items

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

The biggest plugin in space...




Links
MBS Xojo PDF Plugins

Start Chat