Interface ICaptureSession
Represents an active capture session.
Inherited Members
Namespace: Zaya.Screenshot.Services
Assembly: Zaya.Screenshot.dll
Syntax
public interface ICaptureSession : IDisposable
Properties
| Edit this page View SourceRegion
Gets the region being captured.
Declaration
ICaptureRegion Region { get; }
Property Value
| Type | Description |
|---|---|
| ICaptureRegion |
Methods
| Edit this page View SourceCaptureAsync(CancellationToken)
Captures the next available frame.
Declaration
Task<IRawImage?> CaptureAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | Cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IRawImage> | The captured raw image, or null if no frame is available. |