public sealed class LinuxTextClipboard : ITextClipboard, IAsyncDisposable GTK clipboard with presentation-thread ownership and asynchronous transfer draining.
Constructors
LinuxTextClipboard
public LinuxTextClipboard(INativePickerOwner owner) GTK clipboard with presentation-thread ownership and asynchronous transfer draining.
Methods
DisposeAsync
public ValueTask DisposeAsync() Drains reads and relinquishes owned clipboard data before the GTK dispatcher stops.
ReadTextAsync
public 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.
Documentation from ITextClipboard.ReadTextAsync.
WriteTextAsync
public ValueTask<PlatformResult<PlatformUnit>> WriteTextAsync(string text, CancellationToken cancellationToken = default) Writes text. Cancellation prevents queued work; an initiated native write returns its actual outcome.
Documentation from ITextClipboard.WriteTextAsync.