The setGlobal*Property calls are static methods on the WebView.WebBrowserHost object and are being called on the WebView.browserHost instance. This works fine for JavaScript, but TypeScript complains about it.
// Setup some global JS properties that will be available on every page loaded
// into the WebView
WebView.browserHost.setGlobalBoolProperty("WebViewExample", "boolValue", true);
WebView.browserHost.setGlobalNumberProperty("WebViewExample", "numberValue", 42);
WebView.browserHost.setGlobalStringProperty("WebViewExample", "stringValue", "Hello World!");
The
setGlobal*Property
calls are static methods on the WebView.WebBrowserHost object and are being called on the WebView.browserHost instance. This works fine for JavaScript, but TypeScript complains about it.Needs to be updated.