📝 Add docs on BrowserWindow.id.
This commit is contained in:
parent
d49060d659
commit
34fa0f1ff8
1 changed files with 16 additions and 0 deletions
|
@ -148,15 +148,31 @@ Returns the window that is focused in this application.
|
||||||
|
|
||||||
Find a window according to the `webContents` it owns
|
Find a window according to the `webContents` it owns
|
||||||
|
|
||||||
|
### Class Method: BrowserWindow.fromId(id)
|
||||||
|
|
||||||
|
* `id` Integer
|
||||||
|
|
||||||
|
Find a window according to its ID.
|
||||||
|
|
||||||
### BrowserWindow.webContents
|
### BrowserWindow.webContents
|
||||||
|
|
||||||
The `WebContents` object this window owns, all web page related events and
|
The `WebContents` object this window owns, all web page related events and
|
||||||
operations would be done via it.
|
operations would be done via it.
|
||||||
|
|
||||||
|
**Note:** Users should never store this object because it may becomes `null`
|
||||||
|
when the web page has crashed.
|
||||||
|
|
||||||
### BrowserWindow.devToolsWebContents
|
### BrowserWindow.devToolsWebContents
|
||||||
|
|
||||||
Get the `WebContents` of devtools of this window.
|
Get the `WebContents` of devtools of this window.
|
||||||
|
|
||||||
|
**Note:** Users should never store this object because it may becomes `null`
|
||||||
|
when the devtools has been closed.
|
||||||
|
|
||||||
|
### BrowserWindow.id
|
||||||
|
|
||||||
|
Get the unique ID of this window.
|
||||||
|
|
||||||
### BrowserWindow.destroy()
|
### BrowserWindow.destroy()
|
||||||
|
|
||||||
Force closing the window, the `unload` and `beforeunload` event won't be emitted
|
Force closing the window, the `unload` and `beforeunload` event won't be emitted
|
||||||
|
|
Loading…
Reference in a new issue