Pasteboard

Copy and paste strings or images.

Copy and paste strings and images to and from the pasteboard.

+copy

Copies a string to the pasteboard.

static copy(string: string)

Parameters

string
string
The string to copy to the pasteboard.


+paste

Pastes a string from the pasteboard.

static paste(): string

Return value

string
String in the pasteboard or null if no string is in the pasteboard.


+copyString

Copies a string to the pasteboard.

static copyString(string: string)

Parameters

string
string
The string to copy to the pasteboard.


+pasteString

Pastes a string from the pasteboard.

static pasteString(): string

Return value

string
String in the pasteboard or null if no string is in the pasteboard.


+copyImage

Copies an image to the pasteboard.

static copyImage(image: Image)

Parameters

image
Image
The image to copy to the pasteboard.


+pasteImage

Pastes an image from the pasteboard.

static pasteImage(): Image

Return value

Image
Image in the pasteboard or null if no image is in the pasteboard.