Version:
class
ClipboardClass
typescript
class ClipboardClassMethods
getContent
getContent(): Promise<string>returns the current content of the system clipboard (limited to text)
Returns
Promise<string>setContent
setContent(text: string): Promise<void>copies a given text to the system clipboard
Parameters
textstringThe text to copyReturns
Promise<void>Was this page helpful?