Skip to content

Function: copyText()

copyText(text): Promise<boolean>

Copy text to the clipboard, returning whether it succeeded so the caller can decide whether to show a confirmation.

string

Promise<boolean>