Clipboard.readTextAsync

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.

class Clipboard
void
readTextAsync

Parameters

cancellable gio.cancellable.Cancellable
callback gio.types.AsyncReadyCallback

callback to call when the request is satisfied