-
public final class PollQuestionCreatorAdapter extends ListAdapter<QuestionUi, PollQuestionViewHolder<ViewBinding>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPollQuestionCreatorAdapter.Companion
-
Field Summary
Fields Modifier and Type Field Description private Longcountprivate final AsyncListDiffer<QuestionUi>mDiffer
-
Constructor Summary
Constructors Constructor Description PollQuestionCreatorAdapter(Boolean isPoll, Function0<Unit> launchPoll)
-
Method Summary
Modifier and Type Method Description final LonggetCount()final UnitsetCount(Long count)PollQuestionViewHolder<ViewBinding>onCreateViewHolder(ViewGroup parent, Integer viewType)UnitonBindViewHolder(PollQuestionViewHolder<ViewBinding> holder, Integer position)UnitonBindViewHolder(PollQuestionViewHolder<ViewBinding> holder, Integer position, List<Object> payloads)IntegergetItemViewType(Integer position)UnitonCurrentListChanged(List<QuestionUi> previousList, List<QuestionUi> currentList)LonggetItemId(Integer position)-
Methods inherited from class androidx.recyclerview.widget.ListAdapter
bindViewHolder, canRestoreState, createViewHolder, findRelativeAdapterPositionIn, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, setStateRestorationPolicy, unregisterAdapterDataObserver -
Methods inherited from class live.hms.roomkit.ui.polls.PollQuestionCreatorAdapter
getCurrentList, getItem, getItemCount, submitList, submitList -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreateViewHolder
PollQuestionViewHolder<ViewBinding> onCreateViewHolder(ViewGroup parent, Integer viewType)
-
onBindViewHolder
Unit onBindViewHolder(PollQuestionViewHolder<ViewBinding> holder, Integer position)
-
onBindViewHolder
Unit onBindViewHolder(PollQuestionViewHolder<ViewBinding> holder, Integer position, List<Object> payloads)
-
getItemViewType
Integer getItemViewType(Integer position)
-
onCurrentListChanged
Unit onCurrentListChanged(List<QuestionUi> previousList, List<QuestionUi> currentList)
-
-
-
-