Preparing search index...

    Represents the system clipboard, exposing methods to get and set clipboard content.

        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}`);
    Index

    Constructors

    Properties

    Constructors

    Properties

    text: string

    Current text content of the clipboard.