selectionRead

fun selectionRead(sessionHandle: DBusPath, mimeType: String): Result<FileDescriptor>(source)

Reads clipboard content for the given MIME type via a file descriptor. The creation of the file descriptor is the responsibility of the callee.

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

Return

Result containing the file descriptor to read clipboard content from.

Parameters

sessionHandle

Object path for the session.

mimeType

The MIME type of the clipboard content to read.