onCancel

fun onCancel(    connectFlags: <Error class: unknown class> = ConnectFlags(0u),     handler: (reason: DragCancelReason) -> Unit): <Error class: unknown class>(source)

Emitted when the drag operation is cancelled.

Parameters

connectFlags

a combination of ConnectFlags

handler

the Callback to connect. Params: reason The reason the drag was cancelled