WebViewMessageEvent interface

Event object for the chrome.webview.webmessage event. This event is dispatched when CoreWebView2.PostWebMessage* is successfully called.

Extends

MessageEvent

Properties

additionalObjects

Additional DOM objects that are sent via PostJSONMessageWithAdditionalObjects. These objects can be of the following types:

DOM Win32
FileSystemFileHandle ICoreWebView2FileSystemHandle (kind File)
FileSystemDirectoryHandle ICoreWebView2FileSystemHandle (kind Directory)

nullptr entries will be passed as null type.

source

The source of the event is the chrome.webview object.

Property Details

additionalObjects

Additional DOM objects that are sent via PostJSONMessageWithAdditionalObjects. These objects can be of the following types:

DOM Win32
FileSystemFileHandle ICoreWebView2FileSystemHandle (kind File)
FileSystemDirectoryHandle ICoreWebView2FileSystemHandle (kind Directory)

nullptr entries will be passed as null type.

additionalObjects: ArrayLike<any>

Property Value

ArrayLike<any>

source

The source of the event is the chrome.webview object.

source: WebView;

Property Value