Package 

Class FirebaseRecyclerPagingAdapter

    • Method Summary

      Modifier and Type Method Description
      void init() Initializes Snapshots and LiveData
      void updateOptions(@NonNull() DatabasePagingOptions<T> options) Re-initialize the Adapter with a new set of options.
      void startListening() Start listening to paging / scrolling events and populating adapter data.
      void stopListening() Unsubscribe from paging / scrolling events, no more data will be populated, but the existingdata will remain.
      void onBindViewHolder(@NonNull() VH viewHolder, int position)
      DatabaseReference getRef(int position)
      • Methods inherited from class androidx.paging.PagingDataAdapter

        addLoadStateListener, getItemCount, getItemId, getLoadStateFlow, peek, refresh, removeLoadStateListener, retry, setHasStableIds, setStateRestorationPolicy, snapshot, submitData, submitData, withLoadStateFooter, withLoadStateHeader, withLoadStateHeaderAndFooter
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter

        bindViewHolder, createViewHolder, findRelativeAdapterPositionIn, getItemViewType, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onCreateViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, unregisterAdapterDataObserver
      • Methods inherited from class java.lang.Object

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

      • init

         void init()

        Initializes Snapshots and LiveData

      • startListening

         void startListening()

        Start listening to paging / scrolling events and populating adapter data.

      • stopListening

         void stopListening()

        Unsubscribe from paging / scrolling events, no more data will be populated, but the existingdata will remain.