Interface IClipboardService
- Namespace
- NuvTools.AspNetCore.Blazor.JSInterop
- Assembly
- NuvTools.AspNetCore.Blazor.dll
Provides JavaScript interop functionality for clipboard operations.
public interface IClipboardService
Methods
ReadTextAsync()
Reads text from the system clipboard asynchronously.
ValueTask<string> ReadTextAsync()
Returns
- ValueTask<string>
A ValueTask<TResult> representing the asynchronous operation, containing the clipboard text.
WriteTextAsync(string)
Writes text to the system clipboard asynchronously.
ValueTask WriteTextAsync(string text)
Parameters
textstringThe text to write to the clipboard.