Clipboard.readAsync

Asynchronously requests an input stream to read the @clipboard's contents from.

When the operation is finished @callback will be called. You must then call [method@Gdk.Clipboard.read_finish] to get the result of the operation.

The clipboard will choose the most suitable mime type from the given list to fulfill the request, preferring the ones listed first.

class Clipboard
void
readAsync
(
string[] mimeTypes
,,,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

mimeTypes string[]

a %NULL-terminated array of mime types to choose from

ioPriority int

the I/O priority of the request

cancellable Cancellable

optional GCancellable object, %NULL to ignore.

callback GAsyncReadyCallback

callback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta