CoreWebView2ScreenCaptureStartingEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event args for the ScreenCaptureStarting and ScreenCaptureStarting events.
public class CoreWebView2ScreenCaptureStartingEventArgs : EventArgs
type CoreWebView2ScreenCaptureStartingEventArgs = class
inherit EventArgs
Public Class CoreWebView2ScreenCaptureStartingEventArgs
Inherits EventArgs
- Inheritance
-
CoreWebView2ScreenCaptureStartingEventArgs
Properties
| Name | Description |
|---|---|
| Cancel |
The host may set this flag to cancel the screen capture. If canceled, the screen capture UI is not displayed regardless of the Handled property. On the script side, it will return with a NotAllowedError as Permission denied. |
| Handled |
By default, both the ScreenCaptureStarting event handlers on the
CoreWebView2Frame and the ScreenCaptureStarting event handlers on the CoreWebView2 will be invoked, with the
CoreWebView2Frame event handlers invoked first. The host may
set this flag to If a deferral is taken on the event args, then you must synchronously
set Handled to |
| OriginalSourceFrameInfo |
The associated frame information that requests the screen capture permission. This can be used to get the frame source, name, frameId, and parent frame information. |
Methods
| Name | Description |
|---|---|
| GetDeferral() |
Gets a Deferral object. Use this deferral to defer the decision to show the Screen Capture UI. getDisplayMedia() won't call its callbacks until the deferral is completed. |