selectionWrite

fun selectionWrite(sessionHandle: DBusPath, serial: UInt32): Result<FileDescriptor>(source)

Responds to a observeSelectionTransfer event by providing clipboard content via a file descriptor. It is the callee that creates the file descriptor. Write the clipboard data to it, then call selectionWriteDone once the transfer completes or fails.

May only be called after clipboard access was granted by starting the session.

Return

Result containing the file descriptor to write clipboard content to.

Parameters

sessionHandle

Object path for the session.

serial

The serial from the Clipboard.SelectionTransfer signal being answered.