Virtual Method

WPEPlatformClipboardread

Declaration [src]

GBytes*
read (
  WPEClipboard* clipboard,
  const char* format
)

Description [src]

Read the contents of the clipboard.

The returned data will be in the indicated format, which is specified as a MIME type string.

Parameters

format

Type: const char*

MIME type string indicating the format of the data to return.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: GBytes

Clipboard contents in the requested format.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.