LensStudio:Clipboard.Clipboard
ClassRepresents the system clipboard, exposing methods to get and set clipboard content.
Index
Properties
Example
const { clipboard } = await import('LensStudio:Clipboard');
const testText = 'Hello from Clipboard API';
clipboard.text = testText;
console.log(`Wrote to clipboard: ${testText}`);
const readBack = clipboard.text;
console.log(`Read from clipboard: ${readBack}`);
console.log(`Round-trip match: ${readBack === testText}`);
Properties
text
text:
string
Current text content of the clipboard.
Instance
clipboard:
Clipboard
Global clipboard instance for the current Editor session.