Skip to content

LayoutViewHostUnsafe class

Attributes: [RequiresUnreferencedCode("Auto-wireup finds the host's properties and the app's Android resource ids by reflection, which the trimmer cannot see. Use LayoutViewHost or ReactiveViewHost and wire controls in the bind callback to stay trim and ahead-of-time safe.")] [RequiresDynamicCode("Auto-wireup finds the host's properties and the app's Android resource ids by reflection, which the trimmer cannot see. Use LayoutViewHost or ReactiveViewHost and wire controls in the bind callback to stay trim and ahead-of-time safe.")] [DebuggerDisplay("{View}")]

Defined in

Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll Full name: ReactiveUI.Reactive.LayoutViewHostUnsafe Modifiers: public

Summary

View source

A LayoutViewHost that can wire its child controls to its properties by reflection.

Applies to

net10.0-android36.0

Class hierarchy
classDiagram
class LayoutViewHostUnsafe
class LayoutViewHost
LayoutViewHost <|-- LayoutViewHostUnsafe

Inherits from: LayoutViewHost

Remarks

Auto-wireup finds each property of the derived host by reflection and looks up the matching control id in the app's generated Android resource type. The trimmer cannot see either lookup, so this type is not safe to trim or to compile ahead of time.

Use LayoutViewHost and wire the controls in its bind callback when you can.

Constructors

NameSummary
.ctorInitializes a new instance of the [LayoutViewHostUnsafe](# class by inflating a layout resource and optionally wiring child controls to properties by...
Inherited members