Class ReactivePagerAdapter<TViewModel>
- 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> : PagerAdapter, IEnableLogger where TViewModel : class
Type Parameters
TViewModelThe view model type.
- Inheritance
-
ReactivePagerAdapter<TViewModel>
- Implements
-
IEnable
Logger
- Derived
- Extension Methods
Constructors
ReactivePagerAdapter(IObservable<IChangeSet<TViewModel>>, Func<TViewModel, ViewGroup, View>, Action<TViewModel, View>?)
Initializes a new instance of the ReactivePagerAdapter<TViewModel> class.
public ReactivePagerAdapter(IObservable<IChangeSet<TViewModel>> changeSet, Func<TViewModel, ViewGroup, View> viewCreator, Action<TViewModel, View>? viewInitializer = null)
Parameters
changeSetIObservable<IChangeSet <TViewModel>>The change set to page.
viewCreatorFunc<TViewModel, ViewGroup , View>A function which will create the view.
viewInitializerAction<TViewModel, View>A action which will initialize a view.
Properties
Count
Property Value
Methods
DestroyItem(ViewGroup, int, Object)
Parameters
containerViewGroup positionintobjectObject
Dispose(bool)
Parameters
disposingbool
InstantiateItem(ViewGroup, int)
Parameters
containerViewGroup positionint
Returns
- Object
IsViewFromObject(View, Object)
Parameters
viewViewobjectObject