Method
ValentClipboardwrite_bytes
unstable since: 1.0
Declaration [src]
void
valent_clipboard_write_bytes (
ValentClipboard* clipboard,
const char* mimetype,
GBytes* bytes,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Set the content of the primary clipboard adapter.
Call valent_clipboard_write_bytes_finish() to get the result.
Available since: 1.0
This method completes asynchronously. Use valent_clipboard_write_bytes_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
mimetype-
Type:
const char*A mime-type, or
NULLifbytesisNULL.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:
GBytesA
GBytes, orNULLifmimetypeisNULL.The argument can be NULL.The data is owned by the caller of the method. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallback.The argument can be NULL. user_data-
Type:
gpointerUser supplied data.
The argument can be NULL.The data is owned by the caller of the method.