,Android.Views.View>
Defined in Type: ReactiveViewHostReactiveUI.Reactive
Assembly: ReactiveUI.Reactive.dll
Applies to
net10.0-android36.0
Overloads
-
protected ReactiveViewHost() -
protected ReactiveViewHost(Context ctx, int layoutId, ViewGroup parent) -
protected ReactiveViewHost(Context ctx, int layoutId, ViewGroup parent, bool attachToRoot) -
protected ReactiveViewHost(Context ctx, int layoutId, ViewGroup parent, bool attachToRoot, Action<ReactiveViewHost<TViewModel>, View> bind)
1. Overload
protected ReactiveViewHost()
Summary: Initializes a new instance of the ReactiveViewHost class.
Remarks
This constructor performs no inflation or wiring and is AOT-safe. Derived types may assign View manually.
2. Overload
protected ReactiveViewHost(Context ctx, int layoutId, ViewGroup parent)
Summary: Initializes a new instance of the ReactiveViewHost class by inflating a layout resource.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | Context | The Android context. |
layoutId | int | The layout resource identifier. |
parent | ViewGroup | The parent view group. |
Remarks
This constructor is fully AOT- and trimming-safe and performs no reflection-based auto-wireup.
The inflated view is not attached to the parent.
3. Overload
protected ReactiveViewHost(Context ctx, int layoutId, ViewGroup parent, bool attachToRoot)
Summary: Initializes a new instance of the ReactiveViewHost class by inflating a layout resource.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | Context | The Android context. |
layoutId | int | The layout resource identifier. |
parent | ViewGroup | The parent view group. |
attachToRoot | bool | Whether to attach the inflated view to the parent. |
Remarks
This constructor is fully AOT- and trimming-safe and performs no reflection-based auto-wireup.
4. Overload
protected ReactiveViewHost(Context ctx, int layoutId, ViewGroup parent, bool attachToRoot, Action<ReactiveViewHost<TViewModel>, View> bind)
Summary: Initializes a new instance of the ReactiveViewHost class by inflating a layout resource and invoking an explicit, AOT-safe binder callback.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | Context | The Android context. |
layoutId | int | The layout resource identifier. |
parent | ViewGroup | The parent view group. |
attachToRoot | bool | Whether to attach the inflated view to the parent. |
bind | Action | A callback responsible for explicitly wiring child views to the host. |
Remarks
This constructor is fully AOT-safe and avoids reflection entirely.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown when bind is null. |