Class NativePagingLoadStateAdapter
-
- All Implemented Interfaces:
public final class NativePagingLoadStateAdapter extends LoadStateAdapter<NativePagingLoadStateAdapter.ViewHolder>
Localized loading, retry, and end-of-list rows for NativePagingAdapter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNativePagingLoadStateAdapter.ViewHolder
-
Constructor Summary
Constructors Constructor Description NativePagingLoadStateAdapter(CharSequence loadingLabel, CharSequence retryLabel, CharSequence endLabel, Function0<Unit> retry)
-
Method Summary
Modifier and Type Method Description BooleandisplayLoadStateAsItem(LoadState loadState)NativePagingLoadStateAdapter.ViewHolderonCreateViewHolder(ViewGroup parent, LoadState loadState)UnitonBindViewHolder(NativePagingLoadStateAdapter.ViewHolder holder, LoadState loadState)-
Methods inherited from class androidx.paging.LoadStateAdapter
getItemCount, getItemViewType, getLoadState, getStateViewType, onBindViewHolder, onCreateViewHolder, setLoadState -
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, findRelativeAdapterPositionIn, getItemId, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NativePagingLoadStateAdapter
NativePagingLoadStateAdapter(CharSequence loadingLabel, CharSequence retryLabel, CharSequence endLabel, Function0<Unit> retry)
-
-
Method Detail
-
displayLoadStateAsItem
Boolean displayLoadStateAsItem(LoadState loadState)
-
onCreateViewHolder
NativePagingLoadStateAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, LoadState loadState)
-
onBindViewHolder
Unit onBindViewHolder(NativePagingLoadStateAdapter.ViewHolder holder, LoadState loadState)
-
-
-
-