-
public final class PollQuestionViewHolder<T extends ViewBinding> extends RecyclerView.ViewHolder
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PollQuestionViewHolder(T binding, Function2<QuestionUi, Long, Unit> saveInfo, Boolean isPoll, Function0<Unit> reAddQuestionCreator, Function1<Integer, QuestionUi.QuestionCreator> getItem, Function0<Unit> launchPoll, Function1<Integer, Unit> refresh, Function1<Integer, Unit> editQuestion, Function1<Integer, Unit> deleteQuestion, Function3<Integer, List<Integer>, List<String>, Unit> updateSelection)
-
Method Summary
Modifier and Type Method Description final TgetBinding()final Function2<QuestionUi, Long, Unit>getSaveInfo()final BooleangetIsPoll()final Function0<Unit>getReAddQuestionCreator()final Function1<Integer, QuestionUi.QuestionCreator>getGetItem()final Function0<Unit>getLaunchPoll()final Function1<Integer, Unit>getRefresh()final Function1<Integer, Unit>getEditQuestion()final Function1<Integer, Unit>getDeleteQuestion()final Function3<Integer, List<Integer>, List<String>, Unit>getUpdateSelection()final Unitbind(QuestionUi questionUi)-
Methods inherited from class live.hms.roomkit.ui.polls.PollQuestionViewHolder
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
-
PollQuestionViewHolder
PollQuestionViewHolder(T binding, Function2<QuestionUi, Long, Unit> saveInfo, Boolean isPoll, Function0<Unit> reAddQuestionCreator, Function1<Integer, QuestionUi.QuestionCreator> getItem, Function0<Unit> launchPoll, Function1<Integer, Unit> refresh, Function1<Integer, Unit> editQuestion, Function1<Integer, Unit> deleteQuestion, Function3<Integer, List<Integer>, List<String>, Unit> updateSelection)
-
-
Method Detail
-
getBinding
final T getBinding()
-
getSaveInfo
final Function2<QuestionUi, Long, Unit> getSaveInfo()
-
getReAddQuestionCreator
final Function0<Unit> getReAddQuestionCreator()
-
getGetItem
final Function1<Integer, QuestionUi.QuestionCreator> getGetItem()
-
getLaunchPoll
final Function0<Unit> getLaunchPoll()
-
getRefresh
final Function1<Integer, Unit> getRefresh()
-
getEditQuestion
final Function1<Integer, Unit> getEditQuestion()
-
getDeleteQuestion
final Function1<Integer, Unit> getDeleteQuestion()
-
bind
final Unit bind(QuestionUi questionUi)
-
-
-
-