Class: FakeClipboard
libs/common/ide/fake/FakeClipboard.FakeClipboard
Implements
Constructors
constructor
• new FakeClipboard()
Properties
clipboardContents
• Private
clipboardContents: string
= ""
Defined in
libs/common/ide/fake/FakeClipboard.ts:4
Methods
readText
▸ readText(): Promise
<string
>
Read the current clipboard contents as text.
Returns
Promise
<string
>
Implementation of
Defined in
libs/common/ide/fake/FakeClipboard.ts:6
writeText
▸ writeText(value
): Promise
<void
>
Writes text into the clipboard.
Parameters
Name | Type |
---|---|
value | string |
Returns
Promise
<void
>
Implementation of
Defined in
libs/common/ide/fake/FakeClipboard.ts:10