interface ICoreWebView2ExperimentalWebMessageReceivedEventArgs

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2ExperimentalWebMessageReceivedEventArgs
  : public IUnknown

Extension of WebMessageReceivedEventArgs to provide access to additional WebMessage objects.

Summary

Members Descriptions
get_AdditionalObjects Additional received WebMessage objects.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.1671

Members

get_AdditionalObjects

Additional received WebMessage objects.

public HRESULT get_AdditionalObjects(ICoreWebView2ExperimentalObjectCollectionView ** value)

To pass additionalObjects via WebMessage to the app, use the chrome.webview.postMessageWithAdditionalObjects content API. Any DOM object type that can be natively representable that has been passed in to additionalObjects parameter will be accessible here. Currently a WebMessage object can be the following type:

  • ICoreWebView2File. Entries in the collection can be nullptr if null or undefined was passed.