read_text_async


Description:

public async string? read_text_async (Cancellable? cancellable) throws Error

Asynchronously request the this contents converted to a string.

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

This is a simple wrapper around [method@Gdk.Clipboard.read_value_async]. Use that function or [method@Gdk.Clipboard.read_async] directly if you need more control over the operation.

Parameters:

this

a `GdkClipboard`

cancellable

optional `GCancellable` object

callback

callback to call when the request is satisfied

user_data

the data to pass to callback function