-
Notifications
You must be signed in to change notification settings - Fork 552
Expand file tree
/
Copy pathwebviewmessageevent.yml
More file actions
47 lines (45 loc) · 1.69 KB
/
webviewmessageevent.yml
File metadata and controls
47 lines (45 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### YamlMime:TSType
name: WebViewMessageEvent
uid: 'WebView2Script!WebViewMessageEvent:class'
package: WebView2Script!
fullName: WebViewMessageEvent
summary: >-
Event object for the `chrome.webview.webmessage` event. This event is dispatched when
`CoreWebView2.PostWebMessage*` is successfully called.
remarks: ''
isPreview: false
isDeprecated: false
type: interface
properties:
- name: additionalObjects
uid: 'WebView2Script!WebViewMessageEvent#additionalObjects:member'
package: WebView2Script!
fullName: additionalObjects
summary: |-
Additional DOM objects that are sent via `PostJSONMessageWithAdditionalObjects`. These objects can be of the following
types:
| DOM | Win32 |
| ------- | ------------ |
| [FileSystemFileHandle](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) | ICoreWebView2FileSystemHandle (kind `File`) |
| [FileSystemDirectoryHandle](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) | ICoreWebView2FileSystemHandle (kind `Directory`) |
`nullptr` entries will be passed as `null` type.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'additionalObjects: ArrayLike<any>'
return:
type: ArrayLike<any>
- name: source
uid: 'WebView2Script!WebViewMessageEvent#source:member'
package: WebView2Script!
fullName: source
summary: The source of the event is the `chrome.webview` object.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'source: WebView;'
return:
type: '<xref uid="WebView2Script!WebView:class" />'
extends: MessageEvent