Interface: ClipboardManager


CloudControl Pro 9 Docs / clip_manager / ClipboardManager

Interface: ClipboardManager

clip_manager.ClipboardManager

Clipboard manager. Used to get, set, and listen to clipboard content.

Using const { clipboardManager } = require('clip_manager') to import it.

Hierarchy

  • unknown

    ClipboardManager

Table of contents

Methods

Methods

clearClip

clearClip(): void

Clear clipboard content.

Returns

void


getClip

getClip(): null | string

Get clipboard content.

Returns

null | string

Text content


hasClip

hasClip(): boolean

Determine if clipboard has content.

Returns

boolean

If there is content, return true, otherwise return false.


on

on(event, listener): ClipboardManager

Clipboard change event. Triggered when the current clipboard content changes.

Parameters

Name Type
event "clip_changed"
listener () => void

Returns

ClipboardManager


setClip

setClip(text): void

Set clipboard content.

Parameters

Name Type Description
text string Text content

Returns

void