DropReceiver

interface DropReceiver

Manages data drop attempts for a View. It is responsible (through return values from various methods) for determining when a drop operation can be completed for a given View.

Properties

Link copied to clipboard
abstract val active: Boolean

Indicates whether the receiver is active (responding to drag attempts)

Functions

Link copied to clipboard
abstract fun drop(event: DropEvent): Boolean

Informs receiver that the drop operation has ended

Link copied to clipboard
abstract fun dropActionChanged(event: DropEvent): Boolean

Informs receiver that the user has selected a new action for this drop operation

Link copied to clipboard
abstract fun dropEnter(event: DropEvent): Boolean

Indicates that the cursor (with a drop operation) has moved over a View monitored by this receiver.

Link copied to clipboard
open fun dropExit(event: DropEvent)

Indicates that the cursor (with a drop operation) has left a View monitored by this receiver, or that the view is no longer eligible for drops (i.e. it is invisible or disabled).

Link copied to clipboard
abstract fun dropOver(event: DropEvent): Boolean

Informs receiver that the cursor has moved while over the current drop receiver