-
public final class OptionsListAdapter extends ListAdapter<Option, OptionViewHolder>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classOptionsListAdapter.Companion
-
Field Summary
Fields Modifier and Type Field Description private Function0<Unit>refreshSubmitButtonprivate Function2<Integer, String, Unit>onOptionTextChangedprivate Function1<Integer, Unit>onSingleOptionSelectedprivate Function2<Integer, Boolean, Unit>onMultipleOptionSelectedprivate Function1<Integer, Unit>deleteOptionprivate final AsyncListDiffer<Option>mDiffer
-
Constructor Summary
Constructors Constructor Description OptionsListAdapter()
-
Method Summary
Modifier and Type Method Description final Function0<Unit>getRefreshSubmitButton()final UnitsetRefreshSubmitButton(Function0<Unit> refreshSubmitButton)final Function2<Integer, String, Unit>getOnOptionTextChanged()final UnitsetOnOptionTextChanged(Function2<Integer, String, Unit> onOptionTextChanged)final Function1<Integer, Unit>getOnSingleOptionSelected()final UnitsetOnSingleOptionSelected(Function1<Integer, Unit> onSingleOptionSelected)final Function2<Integer, Boolean, Unit>getOnMultipleOptionSelected()final UnitsetOnMultipleOptionSelected(Function2<Integer, Boolean, Unit> onMultipleOptionSelected)final Function1<Integer, Unit>getDeleteOption()final UnitsetDeleteOption(Function1<Integer, Unit> deleteOption)OptionViewHolderonCreateViewHolder(ViewGroup parent, Integer viewType)UnitonBindViewHolder(OptionViewHolder holder, Integer position)UnitonCurrentListChanged(List<Option> previousList, List<Option> currentList)-
Methods inherited from class androidx.recyclerview.widget.ListAdapter
bindViewHolder, canRestoreState, createViewHolder, findRelativeAdapterPositionIn, getItemId, getItemViewType, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, setStateRestorationPolicy, unregisterAdapterDataObserver -
Methods inherited from class live.hms.roomkit.ui.polls.OptionsListAdapter
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
-
getRefreshSubmitButton
final Function0<Unit> getRefreshSubmitButton()
-
setRefreshSubmitButton
final Unit setRefreshSubmitButton(Function0<Unit> refreshSubmitButton)
-
getOnOptionTextChanged
final Function2<Integer, String, Unit> getOnOptionTextChanged()
-
setOnOptionTextChanged
final Unit setOnOptionTextChanged(Function2<Integer, String, Unit> onOptionTextChanged)
-
getOnSingleOptionSelected
final Function1<Integer, Unit> getOnSingleOptionSelected()
-
setOnSingleOptionSelected
final Unit setOnSingleOptionSelected(Function1<Integer, Unit> onSingleOptionSelected)
-
getOnMultipleOptionSelected
final Function2<Integer, Boolean, Unit> getOnMultipleOptionSelected()
-
setOnMultipleOptionSelected
final Unit setOnMultipleOptionSelected(Function2<Integer, Boolean, Unit> onMultipleOptionSelected)
-
getDeleteOption
final Function1<Integer, Unit> getDeleteOption()
-
setDeleteOption
final Unit setDeleteOption(Function1<Integer, Unit> deleteOption)
-
onCreateViewHolder
OptionViewHolder onCreateViewHolder(ViewGroup parent, Integer viewType)
-
onBindViewHolder
Unit onBindViewHolder(OptionViewHolder holder, Integer position)
-
-
-
-