Skip to content

ElectronClipboard.readText method

ElectronClipboard › readText

Unofficial

Reads the clipboard content as plain text.

Signature:

readText(type?: "clipboard" | "selection" | undefined): string

Parameters:

ParameterTypeDescription
type?"clipboard" | "selection" | undefinedThe clipboard type.

Returns: stringThe text content.