)>
Defined in Type: LayoutViewHost
Namespace: ReactiveUI.Reactive
Assembly: ReactiveUI.Reactive.dll
Applies to
net10.0-android36.0
Overloads
-
protected LayoutViewHost() -
protected LayoutViewHost(Context context, int layoutId, ViewGroup parent, bool attachToRoot) -
protected LayoutViewHost(Context context, int layoutId, ViewGroup parent, bool attachToRoot, Action<LayoutViewHost, View> bind)
1. Overload
protected LayoutViewHost()
Summary: Initializes a new instance of the LayoutViewHost class.
Remarks
This constructor performs no inflation or wiring and exists to support
derived types that manage view creation manually.
2. Overload
protected LayoutViewHost(Context context, int layoutId, ViewGroup parent, bool attachToRoot)
Summary: Initializes a new instance of the LayoutViewHost class by inflating a layout resource.
Parameters
| Name | Type | Description |
|---|---|---|
context | 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.
No automatic control wiring is performed. Consumers are expected to wire controls explicitly.
3. Overload
protected LayoutViewHost(Context context, int layoutId, ViewGroup parent, bool attachToRoot, Action<LayoutViewHost, View> bind)
Summary: Initializes a new instance of the LayoutViewHost class by inflating a layout resource and invoking an explicit, AOT-safe binder.
Parameters
| Name | Type | Description |
|---|---|---|
context | 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.
The bind callback is invoked only after View has been assigned.