Class ReactivePagerAdapter<TViewModel, TCollection>
- Namespace
- ReactiveUI.AndroidX
- Assembly
- ReactiveUI.AndroidX.dll
ReactivePagerAdapter is a PagerAdapter that will interface with a Observable change set, in a similar fashion to ReactiveTableViewSource.
public class ReactivePagerAdapter<TViewModel, TCollection> : ReactivePagerAdapter<TViewModel>, IEnableLogger where TViewModel : class where TCollection : INotifyCollectionChanged, IEnumerable<TViewModel>
Type Parameters
TViewModel
The view model type.
TCollection
The type of collection.
- Inheritance
-
PagerAdapterReactivePagerAdapter<TViewModel>ReactivePagerAdapter<TViewModel, TCollection>
- Implements
- Inherited Members
-
PagerAdapter.PositionNonePagerAdapter.PositionUnchangedPagerAdapter.FinishUpdate(View)PagerAdapter.FinishUpdate(ViewGroup)PagerAdapter.GetItemPosition(Object)PagerAdapter.NotifyDataSetChanged()PagerAdapter.RegisterDataSetObserver(DataSetObserver)PagerAdapter.RestoreState(IParcelable, ClassLoader)PagerAdapter.SaveState()PagerAdapter.StartUpdate(View)PagerAdapter.StartUpdate(ViewGroup)PagerAdapter.UnregisterDataSetObserver(DataSetObserver)PagerAdapter.JniPeerMembersPagerAdapter.ThresholdClassPagerAdapter.ThresholdType
- Extension Methods
Remarks
Initializes a new instance of the ReactivePagerAdapter<TViewModel, TCollection> class.
Constructors
ReactivePagerAdapter(TCollection, Func<TViewModel, ViewGroup, View>, Action<TViewModel, View>?)
ReactivePagerAdapter is a PagerAdapter that will interface with a Observable change set, in a similar fashion to ReactiveTableViewSource.
public ReactivePagerAdapter(TCollection collection, Func<TViewModel, ViewGroup, View> viewCreator, Action<TViewModel, View>? viewInitializer = null)
Parameters
collection
TCollectionThe collection to page.
viewCreator
Func<TViewModel, ViewGroup, View>The function which will create the view.
viewInitializer
Action<TViewModel, View>A action which will initialize the view.
Remarks
Initializes a new instance of the ReactivePagerAdapter<TViewModel, TCollection> class.