This component embeds a web browser view into your Project. No browser controls are shown, only the page
The browser is the default provided by the operating system, so has the same features and limitations as
- Windows: Internet Explorer 11 (not Edge). Note: a registry key is required for standalone (published) Windows apps, see below.
- MacOS: Safari
- Android: Android web view (not Chrome)
- iOS: Mobile Safari
The web view displays the default URL when first shown. You can use the Set Web View URL action to
navigate the web view to a different URL.
If a Umajin component goes over top of the web view, it will be hidden and a placeholder displayed instead.
Properties for Web View Component
|Name||When components are placed on a page they appear highlighted blue in the scene tree and can|
be renamed by double clicking in this panel and typing the new name. Components can also be
set to be visible/invisible on the page, using the ‘eye’ icon on this panel.
|Position and Size||Sets position and size. As long as measurements are maintained as percentages it deals|
automatically with dynamic layout and resizing for different devices and orientations. You
can use millimeters to control aspects of size like width or height on order to create a web
view component thats size will be maintained across devices.
|Default URL||Displays default Umajin URL which can be edited to display desired URL.|
|Clear on hide||If checked, the web page will be unloaded by setting URL to about:blank when a different app page is selected.|
The action Set Web View URL (JS: set_web_view_url) will cause navigation to a new URL.
The Web View Component has 3 special events that you can add actions to. These can be found under the Actions Tab.
|On Progress||fires as the URL is downloading. Parameters: [url] the URL being loaded.|
|On Complete||fires when the component has completed loading the URL. Parameters: [url] the final URL that was loaded (in case of redirects this could be different to the original request)|
|On Error||fires when an error occurs loading the URL. Parameters: [url] the final URL that was being loaded. [error] The error message.|
|On URL Change|
Note: not implemented on Android.
Using WebView in Standalone Windows Apps
If you want to run your app standalone on Windows:
The Web View component in Editor uses an embedded Internet Explorer ActiveX component on Windows. By default this control defaults to ancient “IE7 compatible” view.
To make it more useful, we need to configure the embedded IE control into a more modern rendering mode, using the registry key at
Add a DWORD named <yourappname>.exe and set it’s value to decimal 11000
For more information: Internet Explorer Browser Emulation