ReactiveViewHost class¶
Attributes: [DebuggerDisplay("{ViewModel}")]
Defined in
Namespace: ReactiveUI.Reactive
Assembly: ReactiveUI.Reactive.dll
Full name: ReactiveUI.Reactive.ReactiveViewHost<T>
Modifiers: public
Summary¶
A class that implements the Android ViewHolder pattern with a ViewModel. Use it along with GetViewHost.
Applies to
net11.0-android37.0, net10.0-android36.0
Class hierarchy
classDiagram
class ReactiveViewHost~T~
class LayoutViewHost
LayoutViewHost <|-- ReactiveViewHost~T~
class IViewFor~TViewModel~ {
<>
}
IViewFor~TViewModel~ <|.. ReactiveViewHost~T~
class IViewFor {
<>
}
IViewFor <|.. ReactiveViewHost~T~
class IActivatableView {
<>
}
IActivatableView <|.. ReactiveViewHost~T~
class IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ {
<>
}
IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ <|.. ReactiveViewHost~T~
class IReactiveObject {
<>
}
IReactiveObject <|.. ReactiveViewHost~T~
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. ReactiveViewHost~T~
class INotifyPropertyChanging {
<>
}
INotifyPropertyChanging <|.. ReactiveViewHost~T~
class IEnableLogger {
<>
}
IEnableLogger <|.. ReactiveViewHost~T~
Inherits from: LayoutViewHost
Implements: IViewFor<TViewModel>, IViewFor, IActivatableView, IReactiveNotifyPropertyChanged
Remarks¶
Every constructor is safe to trim and to compile ahead of time. Wire child controls in the bind callback,
or derive from ReactiveViewHostUnsafe<TViewModel> (from ReactiveUI.Unsafe) to wire them by reflection and fill
AllPublicProperties.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReactiveViewHost](# class. |
Properties¶
| Name | Summary |
|---|---|
| ViewModel | Gets or sets the view model displayed by the view. |
| 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... |
| 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... |
| ThrownExceptions | Gets an observable of exceptions thrown during reactive operations on this instance. |
| AllPublicProperties | Gets or sets the lazily-computed set of public properties used by legacy reflection-based wiring. |
Methods¶
| Name | Summary |
|---|---|
| SuppressChangeNotifications | When this method is called, an object will not fire change notifications (neither traditional nor observable) until the return value is disposed. |
| AreChangeNotificationsEnabled | Gets a value indicating whether change notifications are enabled. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanged | Occurs when a property value changes. |
| PropertyChanging | Occurs when a property value is changing. |
Inherited members
ReactiveUI.Reactive.LayoutViewHost.#ctorReactiveUI.Reactive.LayoutViewHost.#ctor(Android.Content.Context,System.Int32,Android.Views.ViewGroup,System.Boolean)ReactiveUI.Reactive.LayoutViewHost.#ctor(Android.Content.Context,System.Int32,Android.Views.ViewGroup,System.Boolean,System.Action{ReactiveUI.Reactive.LayoutViewHost,Android.Views.View})ReactiveUI.Reactive.LayoutViewHost.op_Implicit(ReactiveUI.Reactive.LayoutViewHost)~Android.Views.ViewReactiveUI.Reactive.LayoutViewHost.ToViewReactiveUI.Reactive.LayoutViewHost.ViewSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString