Skip to content

Commit 380396f

Browse files
committed
[docs] add App.enableComponent and App.updateComponent
Ref nwjs#6425
1 parent 2d5b629 commit 380396f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/References/App.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ Send the `close` event to all windows of current app, if no window is blocking t
6060

6161
These 2 functions crashes the browser process and the renderer process respectively, to test the [Crash dump](../For Developers/Understanding Crash Dump.md) feature.
6262

63+
## App.enableComponent(component, callback)
64+
65+
!!! warning "Experimental"
66+
This API is experimental and subject to change.
67+
68+
* `component` `{String}` ID of component; currently only `WIDEVINE` is supported.
69+
* `callback` `function(version)` callback after the component is enabled; `version` string parameter is the version of the enabled component. '0.0.0.0' means it's not installed. Use `App.updateComponent()` to install it.
70+
6371
## App.getProxyForURL(url)
6472

6573
* `url` `{String}` the URL to query for proxy
@@ -177,6 +185,14 @@ Unregisters a global keyboard shortcut.
177185

178186
See [Shortcut](Shortcut.md) for more information.
179187

188+
## App.updateComponent(component, callback)
189+
190+
!!! warning "Experimental"
191+
This API is experimental and subject to change.
192+
193+
* `component` `{String}` ID of component; currently only `WIDEVINE` is supported.
194+
* `callback` `function(success)` callback after the component is updated; `success` is a boolean parameter for the update result.
195+
180196
## Event: open(args)
181197

182198
* `args` `{String}` the full command line of the program.

0 commit comments

Comments
 (0)