剪贴板

此接口提供对系统剪贴板的访问。

方法

// Retrieves the text from the clipboard (not supported on web)
getText(): SyncTasks.Promise<string>;

// Places the specified text on the clipboard
setText(text: string): void;