Interface IPageContentSnapshotter
- Namespace
- PageCurl.Maui
- Assembly
- PageCurl.Maui.dll
Captures a laid-out MAUI view as a caller-owned Skia image.
public interface IPageContentSnapshotter
Methods
CaptureAsync(View, CancellationToken)
Captures on the UI thread and transfers ownership of the returned image.
Task<SKImage> CaptureAsync(View content, CancellationToken cancellationToken)
Parameters
contentViewcancellationTokenCancellationToken
Returns
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.