Gdk.Clipboard.read_async

### Method

# Gdk Clipboardread_async

#### Declaration [src]

    void
    gdk_clipboard_read_async (
      GdkClipboard* clipboard,
      const char** mime_types,
      int io_priority,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

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 `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.

#### Parameters

`mime_types` | An array of `char*`
| A `NULL`-terminated array of mime types to choose from.
| The data is owned by the caller of the function.
`io_priority` | `int`
| The I/O priority of the request.
`cancellable` | `GCancellable*`
| Optional `GCancellable` object.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`callback` | `GAsyncReadyCallback`
| Callback to call when the request is satisfied.
`user_data` | `gpointer`
| The data to pass to callback function.