Scoop API

scoop:scoop.window:0.1.0

DragSession

class DragSession

source · line 9
public
public class DragSession internal constructor(
    private val owner: WindowOwner,
    private val initialEffects: DragEffects,
    localData: Any?,
    onCompleted: (DragResult) -> Unit
) : Closeable

Closing disconnects callbacks; it does not claim to cancel an active system drag.

function cancelPending

source · line 156
public
public fun cancelPending(): Boolean

Cancels only work that has not entered the system drag session.