Skip to content

ElectronClipboard.availableFormats method

ElectronClipboard › availableFormats

Unofficial

Returns the available clipboard formats.

Signature:

availableFormats(type?: "clipboard" | "selection" | undefined): string[]

Parameters:

Parameter Type Description
type? "clipboard" | "selection" | undefined The clipboard type.

Returns: string[]An array of format strings.