observeSelectionTransfer

fun observeSelectionTransfer(sessionHandle: DBusPath): Flow<Clipboard.SelectionTransfer>(source)

Returns a Flow that emits whenever another client requests clipboard content from this session. Respond to each event by calling selectionWrite with the signal's serial, then selectionWriteDone when the transfer is complete. If the request is not handled, call selectionWriteDone with success = false.

Only emits events for the given session. Clipboard access must have been granted by starting the session before events are delivered.

Return

Flow of selection transfer request signals.

Parameters

sessionHandle

Object path for the session to observe.