Read and write to the system clipboard.
This package is also accessible with window.__TAURI__.clipboard
when tauri.conf.json > build > withGlobalTauri
is set to true.
#
Functions#
readText▸ readText(): Promise
<string
| null
>
Gets the clipboard content as plain text.
#
ReturnsPromise
<string
| null
>
A promise resolving to the clipboard content as plain text.
#
Defined in#
writeText▸ writeText(text
): Promise
<void
>
Writes a plain text to the clipboard.
#
ParametersName | Type |
---|---|
text | string |
#
ReturnsPromise
<void
>
A promise indicating the success or failure of the operation.