Skip to content

ITextStudioReactionCaptureProvider

InterfaceTextStudioTextStudio
public interface ITextStudioReactionCaptureProvider

Native renderer owns copied or detached resources and validates every versioned access.

QuerySupport(in TextStudioReactionCaptureRequest)

Section titled “QuerySupport(in TextStudioReactionCaptureRequest)”
TextStudioReactionCaptureCapability QuerySupport(in TextStudioReactionCaptureRequest request)

Reports whether the requested retained capture is supported and explains any limitation.

Parameters

Name Type
request TextStudio.TextStudioReactionCaptureRequest

Returns

TextStudio.TextStudioReactionCaptureCapability

TryCapture(in TextStudioReactionCaptureRequest, out TextStudioReactionLease)

Section titled “TryCapture(in TextStudioReactionCaptureRequest, out TextStudioReactionLease)”
bool TryCapture(in TextStudioReactionCaptureRequest request, out TextStudioReactionLease lease)

Attempts to retain the requested output and return a versioned lease owned by this provider.

Parameters

Name Type
request TextStudio.TextStudioReactionCaptureRequest
lease TextStudio.TextStudioReactionLease

Returns

System.Boolean

TryGetAnchor(int, uint, out TextStudioReactionAnchor)

Section titled “TryGetAnchor(int, uint, out TextStudioReactionAnchor)”
bool TryGetAnchor(int slot, uint version, out TextStudioReactionAnchor anchor)

Attempts to resolve the current anchor for the specified capture slot and version.

Parameters

Name Type
slot System.Int32
version System.UInt32
anchor TextStudio.TextStudioReactionAnchor

Returns

System.Boolean

void Release(int slot, uint version)

Releases the retained capture identified by its slot and version.

Parameters

Name Type
slot System.Int32
version System.UInt32