easydnd / ru.checka.easydnd / BaseConfig

BaseConfig

abstract class BaseConfig<S, R>

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

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

Inheritors

DragAndDropDefaultConfig

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

Default configuration class

DragAndDropLocalConfig

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

Additional configuration which can override default behavior of DragAndDropDefaultConfig