ITextClipboard interface

Namespace Runic.Platform · Runic.Platform 0.7.0-preview.5

public interface ITextClipboard

Presentation-scoped Unicode text clipboard operations.

Methods

ReadTextAsync

ValueTask<PlatformResult<string?>> ReadTextAsync(int maximumCharacters, CancellationToken cancellationToken = default)

Reads bounded text; successful null means no text format and an empty string means empty text.

WriteTextAsync

ValueTask<PlatformResult<PlatformUnit>> WriteTextAsync(string text, CancellationToken cancellationToken = default)

Writes text. Cancellation prevents queued work; an initiated native write returns its actual outcome.