@tauri-apps/plugin-clipboard-manager
Read and write to the system clipboard.
Functions
readText()
Gets the clipboard content as plain text.
Returns
Promise
<string
>
Example
Since
2.0.0
writeText()
Writes plain text to the clipboard.
Parameters
Parameter | Type |
---|---|
text | string |
opts ? | object |
opts.label ? | string |
Returns
Promise
<void
>
A promise indicating the success or failure of the operation.
Example
Since
2.0.0
© 2024 Tauri Contributors. CC-BY / MIT