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
TViewModelThe view model type.
TCollectionThe type of collection.
- Inheritance
-
Reactive
Pager <TViewModel>Adapter ReactivePagerAdapter<TViewModel, TCollection>
- Implements
-
IEnable
Logger
- Inherited Members
- 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
collectionTCollectionThe collection to page.
viewCreatorFunc<TViewModel, ViewGroup , View>The function which will create the view.
viewInitializerAction<TViewModel, View>A action which will initialize the view.
Remarks
Initializes a new instance of the ReactivePagerAdapter<TViewModel, TCollection> class.