Class ReactiveRecyclerViewViewHolder<TViewModel>
- Namespace
- ReactiveUI.AndroidX
- Assembly
- ReactiveUI.AndroidX.dll
A AndroidX.
[RequiresDynamicCode("ReactiveRecyclerViewViewHolder inherits from ReactiveObject which uses extension methods that require dynamic code generation")]
[RequiresUnreferencedCode("ReactiveRecyclerViewViewHolder inherits from ReactiveObject which uses extension methods that may require unreferenced code")]
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
TViewModelThe type of the view model.
- Inheritance
-
ReactiveRecyclerViewViewHolder<TViewModel>
- Implements
-
ILayout
View Host IViewFor <TViewModel>IEnableLogger
- Extension Methods
Constructors
ReactiveRecyclerViewViewHolder(View)
Initializes a new instance of the ReactiveRecyclerViewViewHolder<TViewModel> class.
Parameters
viewViewThe view.
Fields
AllPublicProperties
Gets all public accessible properties.
Field Value
- Lazy<Property
Info []>
Properties
Activated
Gets a observable which is triggered when the ViewModel is activated.
Property Value
- IObservable<Unit>
Changed
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.
[IgnoreDataMember]
[JsonIgnore]
public IObservable<IReactivePropertyChangedEventArgs<ReactiveRecyclerViewViewHolder<TViewModel>>> Changed { get; }
Property Value
Changing
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.
[IgnoreDataMember]
[JsonIgnore]
public IObservable<IReactivePropertyChangedEventArgs<ReactiveRecyclerViewViewHolder<TViewModel>>> Changing { get; }
Property Value
Deactivated
Gets a observable which is triggered when the ViewModel is deactivated.
Property Value
- IObservable<Unit>
LongClicked
Gets an observable that signals that this ViewHolder has been long-clicked.
The int is the position of this ViewHolder in the AndroidX.
Property Value
LongClickedWithViewModel
Gets an observable that signals that this ViewHolder has been long-clicked.
The IObservable<T> is the ViewModel of this ViewHolder in the AndroidX.
Property Value
- IObservable<TViewModel>
Selected
Gets an observable that signals that this ViewHolder has been selected.
The int is the position of this ViewHolder in the AndroidX.
Property Value
SelectedWithViewModel
Gets an observable that signals that this ViewHolder has been selected.
The IObservable<T> is the ViewModel of this ViewHolder in the AndroidX.
Property Value
- IObservable<TViewModel>
ThrownExceptions
Gets an observable which signals when exceptions are thrown.
Property Value
View
Gets the current view being shown.
Property Value
- View
ViewModel
Gets or sets the strongly typed view model. Override this property to integrate with the platform's binding system.
Property Value
- TView
Model
Methods
AreChangeNotificationsEnabled()
Gets if change notifications via the INotifyPropertyChanged interface are being sent.
Returns
- bool
A value indicating whether change notifications are enabled or not.
Dispose(bool)
Parameters
disposingbool
SuppressChangeNotifications()
When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
Returns
- IDisposable
An object that, when disposed, reenables change notifications.