epoxy-adapter / com.airbnb.epoxy / EpoxyTouchHelper / DragBuilder3

DragBuilder3

open class DragBuilder3

Functions

forAllModels

open fun forAllModels(): EpoxyTouchHelper.DragBuilder4<EpoxyModel<Any!>!>!

Use this if all models in the controller should be draggable, and if there are multiple types of models in the controller.

withTarget

open fun <U : EpoxyModel<Any!>!> withTarget(targetModelClass: Class<U>!): EpoxyTouchHelper.DragBuilder4<U>!

Set the type of Epoxy model that is draggable. This approach works well if you only have one draggable type.

withTargets

open fun withTargets(vararg targetModelClasses: Class<out EpoxyModel<Any!>!>!): EpoxyTouchHelper.DragBuilder4<EpoxyModel<Any!>!>!

Specify which Epoxy model types are draggable. Use this if you have more than one type that is draggable.