Class SwipeViewHolder
-
- All Implemented Interfaces:
public abstract class SwipeViewHolder extends BaseChannelListItemViewHolder
-
-
Constructor Summary
Constructors Constructor Description SwipeViewHolder(View itemView)
-
Method Summary
Modifier and Type Method Description abstract ViewgetSwipeView()The view that will be swiped. abstract FloatgetOpenedX()The X position where the swipe view is considered to be opened. abstract FloatgetClosedX()The X position where the swipe view is considered to be closed. abstract ClosedFloatingPointRange<Float>getSwipeDeltaRange()The range which the swipe view can slide abstract BooleanisSwipeEnabled()If swipe is enabled or disabled abstract BooleanisSwiped()If the swipe view is swiped of not. final UnitsetSwipeListener(View view, ChannelListView.SwipeListener swipeListener)-
Methods inherited from class io.getstream.chat.android.ui.feature.channels.list.adapter.viewholder.BaseChannelListItemViewHolder
bind -
Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder
getAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SwipeViewHolder
SwipeViewHolder(View itemView)
-
-
Method Detail
-
getSwipeView
abstract View getSwipeView()
The view that will be swiped.
-
getOpenedX
abstract Float getOpenedX()
The X position where the swipe view is considered to be opened.
-
getClosedX
abstract Float getClosedX()
The X position where the swipe view is considered to be closed.
-
getSwipeDeltaRange
abstract ClosedFloatingPointRange<Float> getSwipeDeltaRange()
The range which the swipe view can slide
-
isSwipeEnabled
abstract Boolean isSwipeEnabled()
If swipe is enabled or disabled
-
isSwiped
abstract Boolean isSwiped()
If the swipe view is swiped of not. When true, swipe view is completely swiped, when false it is in the default state
-
setSwipeListener
final Unit setSwipeListener(View view, ChannelListView.SwipeListener swipeListener)
-
-
-
-