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

SwipeBuilder2

open class SwipeBuilder2

Functions

forAllModels

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

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

withTarget

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

Set the type of Epoxy model that is swipable. Use this if you only have one swipable type.

withTargets

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

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