public interface

DraggableItemViewHolder

com.h6ah4i.android.widget.advrecyclerview.draggable.DraggableItemViewHolder
Known Indirect Subclasses

Class Overview

Interface which provides required information for dragging item. Implement this interface on your sub-class of the androidx.recyclerview.widget.RecyclerView.ViewHolder.

Summary

Public Methods
abstract DraggableItemState getDragState()
Gets the state object for dragging item.
abstract int getDragStateFlags()
Gets the state flags value for dragging item.
abstract void setDragStateFlags(int flags)
Sets the state flags value for dragging item

Public Methods

public abstract DraggableItemState getDragState ()

Gets the state object for dragging item. This method can be used inside of the onBindViewHolder(RecyclerView.ViewHolder, int).

Returns

public abstract int getDragStateFlags ()

Gets the state flags value for dragging item. You can access these flags more human friendly way through getDragState().

See Also

public abstract void setDragStateFlags (int flags)

Sets the state flags value for dragging item

Parameters
flags Bitwise OR of these flags; - STATE_FLAG_DRAGGING - STATE_FLAG_IS_ACTIVE - STATE_FLAG_IS_IN_RANGE - STATE_FLAG_IS_UPDATED
See Also