Version:
interface
ClipboardProviderInterface
A ClipboardActionProvider should allow access to the system clipboard
typescript
interface ClipboardProviderInterfaceMethods
clear
clear(): Promise<boolean>clear should allow to clear the system clipboard
Returns
Promise<boolean>copy
copy(text: string): Promise<void>copy should allow to copy text to the systems clipboard
Parameters
textstringThe text to copy to the clipboardReturns
Promise<void>hasText
hasText(): Promise<boolean>hasText should return whether the system clipboard currently holds text or not
Returns
Promise<boolean>paste
paste(): Promise<string>paste should allow to paste the current text on the systems clipboard
Returns
Promise<string>Was this page helpful?