Platforms to show: All Mac Windows Linux Cross-Platform
Required plugins for this example: MBS MacBase Plugin, MBS Mac64bit Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Mac64bit/WebKit2/WebView iOS
This example is the version from Mon, 20th Dec 2020.
Project "WebView iOS.xojo_binary_project"
Class App Inherits MobileApplication
End Class
Class MainScreen Inherits MobileScreen
Control browser Inherits WKWebViewIOSControlMBS
ControlInstance browser Inherits WKWebViewIOSControlMBS
Constraint Constraint 1
Constraint Constraint 2
Constraint Constraint 3
Constraint Constraint 4
EventHandler Sub Opening()
Me.LoadURL "https://www.mbs-plugins.de/"
End EventHandler
End Control
EventHandler Sub Opening()
browser.addScriptMessageHandler "test"
'browser.EvaluateJavaScript("window.webkit.messageHandlers.test.postMessage('Hello');")
End EventHandler
End Class
Class LaunchScreen Inherits iosView
End Class
End Project
See also:
The items on this page are in the following plugins: MBS Mac64bit Plugin.