Show / Hide Table of Contents

Interface ICaptureSession

Represents an active capture session.

Inherited Members
IDisposable.Dispose()
Namespace: Zaya.Screenshot.Services
Assembly: Zaya.Screenshot.dll
Syntax
public interface ICaptureSession : IDisposable

Properties

| Edit this page View Source

Region

Gets the region being captured.

Declaration
ICaptureRegion Region { get; }
Property Value
Type Description
ICaptureRegion

Methods

| Edit this page View Source

CaptureAsync(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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX