easydnd / ru.checka.easydnd / DragAndDropLocalConfig

DragAndDropLocalConfig

class DragAndDropLocalConfig<S, R> : BaseConfig<S, R>

Additional configuration which can override default behavior of DragAndDropDefaultConfig

Constructors

<init>

DragAndDropLocalConfig()

Additional configuration which can override default behavior of DragAndDropDefaultConfig

Inherited Properties

onDragEntered

var onDragEntered: (View) -> Unit

Calls when drag object covers receiver's area. Receiver View will be passed as param

onDragExited

var onDragExited: (View) -> Unit

Calls when drag object stop covers receiver's area. Receiver View will be passed as param

onDropped

var onDropped: (sender: S, receiver: R) -> Unit

Calls when dropping is performed. Sender and Receiver objects of type DragAndDropObject will be passed as params

Inherited Functions

onDragEntered

fun onDragEntered(action: (View) -> Unit): Unit

DSL-like method for variable onDragEntered

onDragExited

fun onDragExited(action: (View) -> Unit): Unit

DSL-like method for variable onDragExited

onDropped

fun onDropped(action: (sender: S, receiver: R) -> Unit): Unit

DSL-like method for variable onDropped