Platforms to show: All Mac Windows Linux Cross-Platform
WKUserScriptMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | WebKit2 | MBS Mac64bit Plugin | 19.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Requires MacOS 10.10 or newer.
64-bit target only.
- 4 properties
- property Handle as Integer
- property injectionTime as Integer
- property isForMainFrameOnly as Boolean
- property Source as String
- method Constructor(Source as String, injectionTime as Integer, isForMainFrameOnly as Boolean)
- 2 constants
InjectionTime
Constant | Value | Description |
---|---|---|
InjectionTimeAtDocumentEnd | 1 |
Inject the script after the document finishes loading, but before other subresources finish loading. |
InjectionTimeAtDocumentStart | 0 |
Inject the script after the document element is created, but before any other content is loaded. |
This class has no sub classes.
Some methods using this class:
- DesktopWKWebViewControlMBS.addUserScript(userScript as WKUserScriptMBS)
- DesktopWKWebViewControlMBS.userScripts as WKUserScriptMBS()
- WKWebViewControlMBS.addUserScript(userScript as WKUserScriptMBS)
- WKWebViewControlMBS.userScripts as WKUserScriptMBS()
- WKWebViewIOSControlMBS.addUserScript(userScript as WKUserScriptMBS)
- WKWebViewIOSControlMBS.userScripts as WKUserScriptMBS()
- WKWebViewMBS.addUserScript(userScript as WKUserScriptMBS)
- WKWebViewMBS.userScripts as WKUserScriptMBS()
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.5
- MBS Xojo Plugins, version 19.5pr8
Release notes
- Version 19.5
- Added WKUserScriptMBS class and related methods to WKWebViewControlMBS control.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
WKPreferencesMBS - WKWebViewConfigurationMBS