Class PageContentSnapshotter

Namespace
PageCurl.Maui
Assembly
PageCurl.Maui.dll

The neutral target reports that native view capture is unavailable.

public sealed class PageContentSnapshotter : IPageContentSnapshotter
Inheritance
PageContentSnapshotter
Implements
Inherited Members

Constructors

PageContentSnapshotter()

public PageContentSnapshotter()

Methods

CaptureAsync(View, CancellationToken)

Captures on the UI thread and transfers ownership of the returned image.

public Task<SKImage> CaptureAsync(View content, CancellationToken cancellationToken)

Parameters

content View
cancellationToken CancellationToken

Returns

Task<SKImage>

Remarks

Implementations must complete their task and cooperate with cancellation. Spread captures are serialized; an unfinished capture delays later requests, including refresh after hiding and showing the control.