ReactiveUIBuilder class¶
Attributes: [DebuggerDisplay("ReactiveUIBuilder")]
Defined in
Namespace: ReactiveUI.Reactive.Builder
Assembly: ReactiveUI.Reactive.dll
Full name: ReactiveUI.Reactive.Builder.ReactiveUIBuilder
Modifiers: public sealed
Summary¶
A builder class for configuring ReactiveUI services with AOT compatibility.
Extends the Splat AppBuilder to provide ReactiveUI-specific configuration.
Applies to
net10.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-tvos18.0, net9.0-macos15.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-ios18.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.5, netstandard2.1, net481, net462, net471
Class hierarchy
classDiagram
class ReactiveUIBuilder
class AppBuilder
AppBuilder <|-- ReactiveUIBuilder
class IReactiveUIBuilder {
<>
}
IReactiveUIBuilder <|.. ReactiveUIBuilder
class IAppBuilder {
<>
}
IAppBuilder <|.. ReactiveUIBuilder
class IReactiveUIInstance {
<>
}
IReactiveUIInstance <|.. ReactiveUIBuilder
class IAppInstance {
<>
}
IAppInstance <|.. ReactiveUIBuilder
Inherits from: AppBuilder
Implements: IReactiveUIBuilder, IAppBuilder, IReactiveUIInstance, IAppInstance
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReactiveUIBuilder](# class. |
Properties¶
| Name | Summary |
|---|---|
| MainThreadScheduler | Gets a scheduler used to schedule work items that should be run "on the UI thread". In normal mode, this will be DispatcherScheduler, and in Unit Test mode this will be... |
| TaskpoolScheduler | Gets the a the scheduler used to schedule work items to run in a background thread. In both modes, this will run on the TPL Task Pool. |
| ConverterService | Gets the converter service used for binding type conversions. |
Methods¶
| Name | Summary |
|---|---|
| Build | Builds the application and returns the ReactiveUI instance wrapper. |
| BuildApp | Builds the application and returns the ReactiveUI instance wrapper. |
| WithInstance | Resolves a single instance and passes it to the action. |
| WithMainThreadScheduler | Configures the main thread scheduler for ReactiveUI. |
| WithTaskPoolScheduler | Configures the task pool scheduler for ReactiveUI. |
| WithRegistrationOnBuild | Adds a custom ReactiveUI registration action. |
| WithRegistration | Adds a custom ReactiveUI registration action. |
| WithPlatformServices | Registers the platform-specific ReactiveUI services. |
| WithCoreServices | Registers the core ReactiveUI services in an AOT-compatible manner. |
| WithViewsFromAssembly | Automatically registers all views that implement IViewFor from the specified assembly. |
| WithPlatformModule | Registers a platform-specific registration module by type. |
| UsingSplatModule | Using the splat module. |
| UsingSplatBuilder | Uses the splat builder. |
| ForCustomPlatform | Configures a custom platform implementation for ReactiveUI. |
| ForPlatforms | Configures ReactiveUI for multiple platforms simultaneously. |
| WithMessageBus | Configures the ReactiveUI message bus. |
| ConfigureViewLocator | Configures the ReactiveUI view locator. |
| ConfigureSuspensionDriver | Configures the ReactiveUI suspension driver. |
| WithConverter | Registers a typed binding converter using the concrete type. |
| WithFallbackConverter | Registers a fallback binding converter. |
| WithSetMethodConverter | Registers a set-method binding converter. |
| WithConvertersFrom | Imports all converters from a Splat dependency resolver into the builder. |
| WithExceptionHandler | Configures a custom exception handler for unhandled errors in ReactiveUI observables. |
| WithSuspensionHost | Configures the non-generic suspension host for application lifecycle management. |
| WithCacheSizes | Configures custom cache size limits for ReactiveUI's internal memoizing caches. |
| RegisterViewModel | Registers a custom view model with the dependency resolver. |
| RegisterConstantViewModel | Registers a constant instance of the specified view model type in the dependency resolver. |
| RegisterSingletonViewModel | Registers a custom view model with the dependency resolver. |
| RegisterView | Registers a custom view for a specific view model. |
| RegisterSingletonView | Registers a custom view for a specific view model. |
Inherited members
Splat.Builder.AppBuilder.#ctor(Splat.IMutableDependencyResolver)Splat.Builder.AppBuilder.#ctor(Splat.IMutableDependencyResolver,Splat.IReadonlyDependencyResolver)Splat.Builder.AppBuilder.CreateSplatBuilderSplat.Builder.AppBuilder.ResetBuilderStateForTestsSplat.Builder.AppBuilder.UseCurrentSplatLocatorSplat.Builder.AppBuilder.UsingModule``1(``0)Splat.Builder.AppBuilder.WithCustomRegistration(System.Action{Splat.IMutableDependencyResolver})Splat.Builder.AppBuilder.WithCoreServicesSplat.Builder.AppBuilder.BuildSplat.Builder.AppBuilder.HasBeenBuiltSplat.Builder.AppBuilder.UsingBuilderSplat.Builder.AppBuilder.CurrentSplat.Builder.AppBuilder.CurrentMutableSystem.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