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