Clipboard.readTextAsync

void readTextAsync(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously request the clipboard contents converted to a string.

When the operation is finished callback will be called. You must then call gdk.clipboard.Clipboard.readTextFinish to get the result.

This is a simple wrapper around gdk.clipboard.Clipboard.readValueAsync. Use that function or gdk.clipboard.Clipboard.readAsync directly if you need more control over the operation.

Parameters

cancellableoptional gio.cancellable.Cancellable object
callbackcallback to call when the request is satisfied