docs: webContents.beginFrameSubscription
This commit is contained in:
parent
573892c112
commit
1e918480b4
2 changed files with 14 additions and 10 deletions
|
@ -551,3 +551,17 @@ For the `mouseWheel` event, the `event` object also have following properties:
|
|||
* `accelerationRatioY` Integer
|
||||
* `hasPreciseScrollingDeltas` Boolean
|
||||
* `canScroll` Boolean
|
||||
|
||||
### `webContents.beginFrameSubscription(callback)`
|
||||
|
||||
* `callback` Function
|
||||
|
||||
Begin subscribing for presentation events and captured frames, the `callback`
|
||||
will be called with `callback(frameBuffer)` when there is a presentation event.
|
||||
|
||||
The `frameBuffer` is a `Buffer` that contains raw pixel data, in the format of
|
||||
32bit ARGB.
|
||||
|
||||
### `webContents.endFrameSubscription()`
|
||||
|
||||
End subscribing for frame presentation events.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue