Package 

Class AnswerOptionsAdapter


  • 
    public final class AnswerOptionsAdapter
    extends ListAdapter<Option, DisplayAnswerOptionsViewHolder>
                        

    Displays options on the single/multi choice questions. When answers are selected, it sends them to the server. When they're sent, it displays the result for that question.

    Functions needed are: answer selected, which takes the question and such

    • Method Summary

      Modifier and Type Method Description
      final Unit disableOptions()
      DisplayAnswerOptionsViewHolder onCreateViewHolder(ViewGroup parent, Integer viewType)
      Unit onBindViewHolder(DisplayAnswerOptionsViewHolder holder, Integer position)
      final Unit setItemSelected(Integer position, Boolean noOthers)
      final List<Integer> getSelectedOptions()
      • 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.display.AnswerOptionsAdapter

        getCurrentList, getItem, getItemCount, onCurrentListChanged, submitList, submitList
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait