Method

ValentClipboardread_text

unstable since: 1.0

Declaration [src]

void
valent_clipboard_read_text (
  ValentClipboard* clipboard,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Get the text content of the primary clipboard adapter.

Call valent_clipboard_read_text_finish() to get the result.

Available since: 1.0

This method completes asynchronously. Use valent_clipboard_read_text_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

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.

The argument can be NULL.
user_data

Type: gpointer

User supplied data.

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