read_async


Description:

public async InputStream? read_async (string[] mime_types, int io_priority, Cancellable? cancellable, out unowned string out_mime_type) throws Error

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

When the operation is finished callback will be called. You must then call [[email protected]_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.

Parameters:

this

a `GdkClipboard`

mime_types

a null-terminated array of mime types to choose from

io_priority

the I/O priority of the request

cancellable

optional `GCancellable` object

callback

callback to call when the request is satisfied

user_data

the data to pass to callback function




2022 vala-language.org