Document static webContents methods

This commit is contained in:
Kevin Sawicki 2016-07-14 09:00:29 -07:00
parent a7badd43d5
commit c680c0b85e

View file

@ -420,6 +420,20 @@ app.on('ready', () => {
})
```
## Static Methods
The `webContents` class has the following static methods:
#### `webContents.getAllWebContents()`
Returns an array of all web contents. This will contain web contents for all
windows, webviews, opened devtools, and devtools extension background pages.
#### `webContents.getFocusedWebContents()`
Returns the web contents that is focused in this application, otherwise
returns `null`.
## Instance Methods
The `webContents` object has the following instance methods: