Skip to content

ElectronClipboard.writeBookmark method

ElectronClipboard › writeBookmark

Unofficial

Writes a bookmark to the clipboard. The title is only used on darwin. Only available on darwin and win32.

Signature:

writeBookmark(title: string, url: string, type?: "clipboard" | "selection" | undefined): void

Parameters:

ParameterTypeDescription
titlestringThe bookmark title.
urlstringThe bookmark URL.
type?"clipboard" | "selection" | undefinedThe clipboard type.

Returns: void