Platforms to show: All Mac Windows Linux Cross-Platform
Back to WKWebViewIOSControlMBS control.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 21.0 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
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 | Desktop & iOS |
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.
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 | Desktop & iOS |
This event may be called often, so don't do much here!
WKWebViewIOSControlMBS.GotFocus
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 21.0 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This only fires if the control itself got focus and not a sub control.
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 | Desktop & iOS |
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.
WKWebViewIOSControlMBS.LostFocus
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 21.0 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This only fires if the control itself lost focus and not a sub control.
WKWebViewIOSControlMBS.navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 22.3 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
navigationAction: Descriptive information about the navigation response that turned into a download.
download: An object that represents the download of a web resource.
Implement this method to begin tracking download progress.
WKWebViewIOSControlMBS.navigationResponseDidBecomeDownload(navigationResponse as WKNavigationResponseMBS, download as WKDownloadMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 22.3 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
navigationResponse: Descriptive information about the navigation response that turned into a download.
download: An object that represents the download of a web resource.
Implement this method to begin tracking download progress.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 21.0 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
WKWebViewIOSControlMBS.pauseAllMediaPlaybackCompleted
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 24.5 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
WKWebViewIOSControlMBS.requestMediaPlaybackStateCompleted(state as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 24.5 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
State: A value that indicates whether the media in the web view is playing, paused, or suspended. If there’s no media in the web view to play, this method provides MediaPlaybackStateNone.
WKWebViewIOSControlMBS.runJavaScriptAlertPanel(initiatedByFrame as WKFrameInfoMBS, message as String)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 21.0 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
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.
WKWebViewIOSControlMBS.runJavaScriptConfirmPanel(initiatedByFrame as WKFrameInfoMBS, 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 | Desktop & iOS |
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.
WKWebViewIOSControlMBS.runJavaScriptTextInputPanel(initiatedByFrame as WKFrameInfoMBS, 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 | Desktop & iOS |
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.
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 | Desktop & iOS |
If snapshot creation failed, error is set.
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 | Desktop & iOS |
WKWebViewIOSControlMBS.WebContentProcessDidTerminate
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | WebKit2 | MBS Mac64bit Plugin | 22.3 | ❌ No | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Web views use a separate process to render and manage web content. WebKit calls this method when the process for the specified web view terminates for any reason.
The items on this page are in the following plugins: MBS Mac64bit Plugin.