copyToClipboard(text: string): Promise<boolean> Returns Promise<boolean>
- A promise that resolves to a boolean indicating whether the copy operation was successful.
Methods
listen
listen(fn: (text: string) => void): () => void Parameters
- fn: (text: string) => void
Returns () => void
override
override(ref: (text: string) => void | Promise<void>): void Parameters
- ref: (text: string) => void | Promise<void>
Returns void
Copies the given text to the clipboard.