Platforms to show: All Mac Windows Linux Cross-Platform

Back to WKWebViewIOSControlMBS control.

WKWebViewIOSControlMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
The control is about to close.

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
Creates a new web view.

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
The estimated progress for loading the webpage changed.

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
The control itself got focus.

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
JavaScript was evaluated.

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
The control lost focus.

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
Tells the app that a navigation action became a download.
Example
Sub navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS) Handles navigationActionDidBecomeDownload
System.DebugLog CurrentMethodName

// add download to your list of downloads you monitor
End Sub

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
Tells the app that a navigation response became a download.
Example
Sub navigationResponseDidBecomeDownload(navigationResponse as WKNavigationResponseMBS, download as WKDownloadMBS) Handles navigationResponseDidBecomeDownload
System.DebugLog CurrentMethodName

// add download to your list of downloads you monitor
End Sub

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.

WKWebViewIOSControlMBS.Open

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
The control is about to was created and you can initialize it.

WKWebViewIOSControlMBS.pauseAllMediaPlaybackCompleted

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 24.5 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
The event the system executes after the web view pauses media playback.

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
The event the system executes after the web view determines the current state of media playback.

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
Displays a JavaScript alert panel.

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
Displays a JavaScript confirm panel.

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
Displays a JavaScript text input panel.

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
Called when snapshot of website is completed.

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
The title of the webpage changed.

WKWebViewIOSControlMBS.WebContentProcessDidTerminate

Type Topic Plugin Version macOS Windows Linux iOS Targets
event WebKit2 MBS Mac64bit Plugin 22.3 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the app that the web view’s content process was terminated.

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.


The biggest plugin in space...