Class ReactiveRecyclerViewAdapter<TViewModel>
- Namespace
- ReactiveUI.AndroidX
- Assembly
- ReactiveUI.AndroidX.dll
An adapter for the Android AndroidX.
public abstract class ReactiveRecyclerViewAdapter<TViewModel> : RecyclerView.Adapter where TViewModel : class, IReactiveObject
Type Parameters
TViewModelThe type of ViewModel that this adapter holds.
- Inheritance
-
ReactiveRecyclerViewAdapter<TViewModel>
- Derived
- Extension Methods
Constructors
ReactiveRecyclerViewAdapter(IObservable<IChangeSet<TViewModel>>)
Initializes a new instance of the ReactiveRecyclerViewAdapter<TViewModel> class.
Parameters
backingListIObservable<IChangeSet <TViewModel>>The backing list.
Properties
ItemCount
Property Value
Methods
Dispose(bool)
Parameters
disposingbool
GetItemViewType(int)
Parameters
positionint
Returns
GetItemViewType(int, TViewModel?)
Determine the View that will be used/re-used in lists where the list contains different cell designs.
Parameters
positionintThe position of the current view in the list.
viewModelTViewModel The ViewModel associated with the current View.
Returns
- int
An ID to be used in OnCreateViewHolder.
OnBindViewHolder(ViewHolder, int)
Parameters
holderViewHolder positionint