Summary
A
RecyclerView.ViewHolder
implementation that binds to a reactive view model.
- Namespace
- ReactiveUI
.AndroidX - Interfaces
-
- ILayoutViewHost
- IViewFor
<TViewModel> - IViewFor
- IActivatableView
- I
Reactive Notify Property Changed <Reactive Recycler View View Holder <TViewModel> > - IReactiveObject
- I
Notify Property Changed - I
Notify Property Changing - IEnableLogger
- ICanActivate
- Base Types
-
- RecyclerView
.ViewHolder
- RecyclerView
graph BT
Type-->Base0["RecyclerView.ViewHolder"]
Type-.->Interface0["ILayoutViewHost"]
click Interface0 "/api/ReactiveUI/ILayoutViewHost"
Type-.->Interface1["IViewFor<TViewModel>"]
Type-.->Interface2["IViewFor"]
click Interface2 "/api/ReactiveUI/IViewFor"
Type-.->Interface3["IActivatableView"]
click Interface3 "/api/ReactiveUI/IActivatableView"
Type-.->Interface4["IReactiveNotifyPropertyChanged<ReactiveRecyclerViewViewHolder<TViewModel>>"]
Type-.->Interface5["IReactiveObject"]
click Interface5 "/api/ReactiveUI/IReactiveObject"
Type-.->Interface6["INotifyPropertyChanged"]
Type-.->Interface7["INotifyPropertyChanging"]
Type-.->Interface8["IEnableLogger"]
click Interface8 "/api/Splat/IEnableLogger"
Type-.->Interface9["ICanActivate"]
click Interface9 "/api/ReactiveUI/ICanActivate"
Type["ReactiveRecyclerViewViewHolder<TViewModel>"]
class Type type-node
Syntax
public class ReactiveRecyclerViewViewHolder<TViewModel> : RecyclerView.ViewHolder, ILayoutViewHost,
IViewFor<TViewModel>, IViewFor, IActivatableView,
IReactiveNotifyPropertyChanged<ReactiveRecyclerViewViewHolder<TViewModel>>, IReactiveObject,
INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, ICanActivate
where TViewModel : class, IReactiveObject
Type Parameters
Name | Description |
---|---|
TViewModel | The type of the view model. |
Constructors
Name | Summary |
---|---|
Reactive |
Initializes a new instance of the ReactiveRecyclerViewViewHolder<TViewModel> class.
|
Events
Name | Type | Summary |
---|---|---|
PropertyChanged | Property |
|
PropertyChanging | Property |
Fields
Name | Constant Value | Summary |
---|---|---|
AllPublicProperties |
Gets all public accessible properties.
|
Properties
Name | Value | Summary |
---|---|---|
Activated | IObservable |
Gets a observable which is triggered when the ViewModel is activated.
|
Changed | IObservable |
Gets an Observable that fires *after* a property has changed.
Note that this should not fire duplicate change notifications if a
property is set to the same value multiple times.
|
Changing | IObservable |
Gets an observable that fires *before* a property is about to
be changed. Note that this should not fire duplicate change notifications if a
property is set to the same value multiple times.
|
Deactivated | IObservable |
Gets a observable which is triggered when the ViewModel is deactivated.
|
LongClicked | IObservable |
Gets an observable that signals that this ViewHolder has been long-clicked.
The
int is the position of this ViewHolder in the RecyclerView
and corresponds to the RecyclerView.ViewHolder.AdapterPosition property.
|
Long |
IObservable |
Gets an observable that signals that this ViewHolder has been long-clicked.
The
IObservable<T> is the ViewModel of this ViewHolder in the RecyclerView .
|
Selected | IObservable |
Gets an observable that signals that this ViewHolder has been selected.
The
int is the position of this ViewHolder in the RecyclerView
and corresponds to the RecyclerView.ViewHolder.AdapterPosition property.
|
Selected |
IObservable |
Gets an observable that signals that this ViewHolder has been selected.
The
IObservable<T> is the ViewModel of this ViewHolder in the RecyclerView .
|
ThrownExceptions | IObservable |
Gets an observable which signals when exceptions are thrown.
|
View | View |
Gets the current view being shown.
|
ViewModel | TViewModel |
Gets or sets the ViewModel corresponding to this specific View. This should be
a DependencyProperty if you're using XAML.
|
Methods
Name | Value | Summary |
---|---|---|
Are |
bool |
Gets if change notifications via the INotifyPropertyChanged interface are being sent.
|
Dispose |
void | |
Suppress |
IDisposable |
When this method is called, an object will not fire change
notifications (neither traditional nor Observable notifications)
until the return value is disposed.
|