Package-level declarations
Types
The Clipboard
interface of the Clipboard API provides read and write access to the contents of the system clipboard. Available only in secure contexts.
The ClipboardEvent
interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Element/cut_event, Element/copy_event, and Element/paste_event events.
The ClipboardItem
interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively. Available only in secure contexts.
Properties
Functions
The getType()
method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found.
The read()
method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data.
The write()
method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion.