Virtual Method

ValentClipboardAdapterwrite_bytes

unstable since: 1.0

Declaration [src]

void
write_bytes (
  ValentClipboardAdapter* adapter,
  const char* mimetype,
  GBytes* bytes,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Set the content of the clipboard.

Call valent_clipboard_adapter_write_bytes_finish() to get the result.

Available since: 1.0

Parameters

mimetype

Type: const char*

A mime-type, or NULL if bytes is NULL.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
bytes

Type: GBytes

A GBytes, or NULL if mimetype is NULL.

The argument can be NULL.
The data is owned by the caller of the method.
cancellable

Type: GCancellable

A GCancellable.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback.

user_data

Type: gpointer

User supplied data.

The argument can be NULL.
The data is owned by the caller of the method.