ElectronClipboard.has method
ElectronClipboard › has
Unofficial
Returns whether the clipboard has the specified format.Signature:
has(format: string, type?: "clipboard" | "selection" | undefined): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| format | string | The format to check. |
| type? | "clipboard" | "selection" | undefined | The clipboard type. |
Returns: boolean — Whether the format is available.