public class Clipboard
On-demand OS clipboard access without creating a GUI window. Linux requires wl-paste (Wayland) or xclip (X11) and a PNG clipboard target. Windows converts the clipboard bitmap with the installed .NET image encoder. No helper is started until explicitly requested by the user. Example: Clipboard.saveImagePNG(Path("screenshot.png")).
| Modifier and Type | Member | Description |
|---|---|---|
| public static native | getFiles | Reads files explicitly copied by the user without opening their contents. |
| public static | getTextgetText() as String |
Reads plain text from the operating system clipboard. |
| public static | saveImagePNGsaveImagePNG(destination as Path) as Void |
Exports an image to a new PNG file, never replacing an existing file. |
| public static | setTextsetText(text as String) as Void |
Copies plain text to the operating system clipboard. |