-
public abstract class SwipeViewHolder extends BaseChannelListItemViewHolder
-
-
Field Summary
Fields Modifier and Type Field Description private final ViewitemViewprivate final WeakReference<RecyclerView>mNestedRecyclerViewprivate final IntegermPositionprivate final IntegermOldPositionprivate final LongmItemIdprivate final IntegermItemViewTypeprivate final IntegermPreLayoutPositionprivate final RecyclerView.ViewHoldermShadowedHolderprivate final RecyclerView.ViewHoldermShadowingHolderprivate final IntegermFlagsprivate final List<Object>mPayloadsprivate final List<Object>mUnmodifiedPayloadsprivate final RecyclerView.RecyclermScrapContainerprivate final BooleanmInChangeScrapprivate final IntegermPendingAccessibilityStateprivate final RecyclerViewmOwnerRecyclerViewprivate final RecyclerView.Adapter<out RecyclerView.ViewHolder>mBindingAdapter
-
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.SwipeViewHolder
bind -
Methods inherited from class io.getstream.chat.android.ui.feature.channels.list.adapter.viewholder.BaseChannelListItemViewHolder
addChangePayload, addFlags, clearOldPosition, clearPayload, clearReturnedFromScrapFlag, clearTmpDetachFlag, doesTransientStatePreventRecycling, flagRemovedAndOffsetPosition, getAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, getUnmodifiedPayloads, hasAnyOfTheFlags, isAdapterPositionUnknown, isAttachedToTransitionOverlay, isBound, isInvalid, isRecyclable, isRemoved, isScrap, isTmpDetached, isUpdated, needsUpdate, offsetPosition, onEnteredHiddenState, onLeftHiddenState, resetInternal, saveOldPosition, setFlags, setIsRecyclable, setScrapContainer, shouldBeKeptAsChild, shouldIgnore, stopIgnoring, toString, unScrap, wasReturnedFromScrap -
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)
-
-
-
-