Skip to content

ElectronClipboard.has method

ElectronClipboard › has

Unofficial

Returns whether the clipboard has the specified format.

Signature:

has(format: string, type?: "clipboard" | "selection" | undefined): boolean

Parameters:

Parameter Type Description
format string The format to check.
type? "clipboard" | "selection" | undefined The clipboard type.

Returns: booleanWhether the format is available.