Interface: Clipboard
Defined in: packages/extension-api/src/extension-api.d.ts:4524
The clipboard provides read and write access to the system's clipboard.
Methods
readText()
readText():
Promise
<string
>
Defined in: packages/extension-api/src/extension-api.d.ts:4529
Read the current clipboard contents as text.
Returns
Promise
<string
>
A Promise that resolves to a string.
writeText()
writeText(
value
):Promise
<void
>
Defined in: packages/extension-api/src/extension-api.d.ts:4535
Writes text into the clipboard.
Parameters
value
string
Returns
Promise
<void
>
A Promise that resolves when writing happened.