Skip to main content

Module capture

Module capture 

Expand description

Screen capture, as the host provides it.

An app asks crate::host::HostServices::screen_capture for a stream and drains the returned channel once per frame; the UI thread never blocks while the host shows its source picker. The host mediates the permission prompt and never invents a stream: without a grant the answer is ScreenCaptureOutcome::Cancelled or ScreenCaptureOutcome::Unavailable.

Structs§

ScreenCaptureGrant
A stream the user granted.
ScreenCaptureRequest
What the app would like the user to choose from.

Enums§

CaptureStream
Where the granted frames can be read from.
ScreenCaptureOutcome
The result of a screen-capture request.

Type Aliases§

ScreenCaptureChannel
A pending screen-capture request: the receiver the UI thread drains each frame.