Version:
class

ClipboardClass

typescript
class ClipboardClass

Methods

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 copy

Returns

Promise<void>

Was this page helpful?