Class BaseRecyclerViewHolder

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Context getContext()
      Unit bindItem(T item) Calls to update the contents with the item.
      final Unit setItemClickListener(Function1<Integer, Unit> onItemClick) Register a callback to be invoked when this item is clicked.
      final Unit setItemLongClickListener(Function1<Integer, Unit> onItemLongClick) Register a callback to be invoked when this item is clicked and held.
      Unit onClick(View itemView)
      Boolean onLongClick(View itemView)
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
      • Methods inherited from class android.view.View.OnLongClickListener

        onLongClickUseDefaultHapticFeedback
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseRecyclerViewHolder

        BaseRecyclerViewHolder(ViewGroup parentView, Integer layoutId)
        Constructor.
        Parameters:
        parentView - parent
        layoutId - layout resource to inflate
      • BaseRecyclerViewHolder

        BaseRecyclerViewHolder(View itemView)
        Constructor.
        Parameters:
        itemView - item view