readText method
The readText()
method of the Clipboard interface returns a
Promise
which fulfils with a copy of the textual contents of the system
clipboard.
Note: To read non-text contents from the clipboard, use the Clipboard.read method instead. You can write text to the clipboard using Clipboard.writeText.
Implementation
external JSPromise<JSString> readText();