-
Notifications
You must be signed in to change notification settings - Fork 552
Expand file tree
/
Copy pathhostobjectsasyncroot.yml
More file actions
78 lines (74 loc) · 2.91 KB
/
hostobjectsasyncroot.yml
File metadata and controls
78 lines (74 loc) · 2.91 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
### YamlMime:TSType
name: HostObjectsAsyncRoot
uid: 'WebView2Script!HostObjectsAsyncRoot:class'
package: WebView2Script!
fullName: HostObjectsAsyncRoot
summary: >-
Contains asynchronous proxies for all host objects added via `CoreWebView2.AddHostObjectToScript` as well as options
to configure those proxies, and the container for synchronous proxies.
If you call `coreWebView2.AddHostObjectToScript("myObject", object);` in your native code, an asynchronous proxy for
`object` is available to your web-side code, by using `chrome.webview.hostObjects.myObject`<!-- -->.
remarks: ''
isPreview: false
isDeprecated: false
type: class
properties:
- name: options
uid: 'WebView2Script!HostObjectsAsyncRoot#options:member'
package: WebView2Script!
fullName: options
summary: Contains options applicable to `CoreWebView2.AddHostObjectToScript` added script proxies.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'options: HostObjectsOptions;'
return:
type: '<xref uid="WebView2Script!HostObjectsOptions:class" />'
- name: sync
uid: 'WebView2Script!HostObjectsAsyncRoot#sync:member'
package: WebView2Script!
fullName: sync
summary: >-
Contains synchronous proxies for all host objects added via `CoreWebView2.AddHostObjectToScript`<!-- -->.
If you call `coreWebView2.AddHostObjectToScript("myObject", object);` in your native code, a synchronous proxy for
`object` is available to your web-side code, by using `chrome.webview.hostObjects.sync.myObject`<!-- -->.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'sync: HostObjectsSyncRoot;'
return:
type: '<xref uid="WebView2Script!HostObjectsSyncRoot:class" />'
methods:
- name: cancelPromise(promise)
uid: 'WebView2Script!HostObjectsAsyncRoot#cancelPromise:member(1)'
package: WebView2Script!
fullName: cancelPromise(promise)
summary: Performs a best-effort cancellation on promises for async method calls.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'cancelPromise(promise: Promise<HostObjectAsyncProxy>): void;'
parameters:
- id: promise
description: ''
type: 'Promise<<xref uid="WebView2Script!HostObjectAsyncProxy:class" />>'
return:
type: void
description: ''
- name: cleanupSome()
uid: 'WebView2Script!HostObjectsAsyncRoot#cleanupSome:member(1)'
package: WebView2Script!
fullName: cleanupSome()
summary: Performs a best effort garbage collection on host object proxies that are no longer in use.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'cleanupSome() : void;'
return:
type: void
description: ''
extends: '<xref uid="WebView2Script!HostObjectAsyncProxyBase:class" />'