ElectronClipboard.readText method
ElectronClipboard › readText
Unofficial
Reads the clipboard content as plain text.Signature:
readText(type?: 'clipboard' | 'selection'): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| type? | 'clipboard' | 'selection' | The clipboard type. |
Returns: string — The text content.