read method
The read()
method of the Clipboard interface requests a copy of
the clipboard's contents, fulfilling the returned Promise
with the data.
The method can in theory return arbitrary data (unlike Clipboard.readText, which can only return text). Browsers commonly support reading text, HTML, and PNG image data — see browser compatibility for more information.
Implementation
external JSPromise<ClipboardItems> read(
[ClipboardUnsanitizedFormats formats]);