-
Notifications
You must be signed in to change notification settings - Fork 544
Open
Labels
Description
The documentation for AddHostObjectToScript is incorrect. It's obviously copied from the documentation for the .NET version of WebView2, but for WinRT, the procedures are different (and complicated unfortunately):
For WinRT, an insane effort is required which involves creating a separate project for the classes that should be exposed and it also requires adding a C++ project (like WinRtAdapter in the code sample), which creates WinRT/COM definitions, which finally need to be wrapped again via methods from ICoreWebView2DispatchAdapter.
(roughly like that)
These procedures are not documented and the current description is wrong for WinRT.
AB#46593196 - Deliverable, auto-created
AB#51566922 - Bug, for triage