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:

ParameterTypeDescription
formatstringThe format to check.
type?"clipboard" | "selection" | undefinedThe clipboard type.

Returns: booleanWhether the format is available.