SwipeController

class SwipeController(context: Context, swipeController: SwipeController.Actions) : ItemTouchHelper.Callback

Created by Mehrosh.Mehboob on 19-Feb-18.

Constructors

Link copied to clipboard
fun SwipeController(context: Context, swipeController: SwipeController.Actions)

Types

Link copied to clipboard
fun interface Actions

Created by Mehrosh.Mehboob on 20-Feb-18.

Functions

Link copied to clipboard
open fun canDropOver(    @NonNull p0: RecyclerView,     @NonNull p1: RecyclerView.ViewHolder,     @NonNull p2: RecyclerView.ViewHolder): Boolean
Link copied to clipboard
open fun chooseDropTarget(    @NonNull p0: RecyclerView.ViewHolder,     @NonNull p1: MutableList<RecyclerView.ViewHolder>,     p2: Int,     p3: Int): RecyclerView.ViewHolder
Link copied to clipboard
open fun clearView(@NonNull p0: RecyclerView, @NonNull p1: RecyclerView.ViewHolder)
Link copied to clipboard
open fun convertToAbsoluteDirection(p0: Int, p1: Int): Int
Link copied to clipboard
open fun getAnimationDuration(    @NonNull p0: RecyclerView,     p1: Int,     p2: Float,     p3: Float): Long
Link copied to clipboard
open fun getBoundingBoxMargin(): Int
Link copied to clipboard
open override fun getMovementFlags(recyclerView: RecyclerView, viewHolder: RecyclerView.ViewHolder): Int
Link copied to clipboard
open fun getMoveThreshold(@NonNull p0: RecyclerView.ViewHolder): Float
Link copied to clipboard
open fun getSwipeEscapeVelocity(p0: Float): Float
Link copied to clipboard
open override fun getSwipeThreshold(viewHolder: RecyclerView.ViewHolder): Float
Link copied to clipboard
open fun getSwipeVelocityThreshold(p0: Float): Float
Link copied to clipboard
open fun interpolateOutOfBoundsScroll(    @NonNull p0: RecyclerView,     p1: Int,     p2: Int,     p3: Int,     p4: Long): Int
Link copied to clipboard
open fun isItemViewSwipeEnabled(): Boolean
Link copied to clipboard
open fun isLongPressDragEnabled(): Boolean
Link copied to clipboard
open override fun onChildDraw(    canvas: Canvas,     recyclerView: RecyclerView,     viewHolder: RecyclerView.ViewHolder,     dX: Float,     dY: Float,     actionState: Int,     isCurrentlyActive: Boolean)
Link copied to clipboard
open fun onChildDrawOver(    @NonNull p0: Canvas,     @NonNull p1: RecyclerView,     p2: RecyclerView.ViewHolder,     p3: Float,     p4: Float,     p5: Int,     p6: Boolean)
Link copied to clipboard
open override fun onMove(    recyclerView: RecyclerView,     viewHolder: RecyclerView.ViewHolder,     viewHolder1: RecyclerView.ViewHolder): Boolean
Link copied to clipboard
open fun onMoved(    @NonNull p0: RecyclerView,     @NonNull p1: RecyclerView.ViewHolder,     p2: Int,     @NonNull p3: RecyclerView.ViewHolder,     p4: Int,     p5: Int,     p6: Int)
Link copied to clipboard
open fun onSelectedChanged(@Nullable p0: RecyclerView.ViewHolder?, p1: Int)
Link copied to clipboard
open override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int)