# ReactiveUIBuilder

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/builder/struct-reactiveuibuilder/

**struct** · [`ferroui-reactiveui`](/docs/0.5.0/api/ferroui-reactiveui/) · v0.5.0

```rust
struct ReactiveUIBuilder
```

The builder of a ReactiveUI application (`ReactiveUIBuilder`): Splat's `AppBuilder` with the
services, schedulers, converters and state of ReactiveUI.

```
use ferroui_reactiveui::RxAppBuilder;

RxAppBuilder::reset_for_testing();
let builder = RxAppBuilder::create_reactive_ui_builder();
builder.with_core_services().with_cache_sizes(32, 128).build_app();
RxAppBuilder::ensure_initialized();
```

Deviation (DEVIATIONS.md, ReactiveUI): upstream derives the class from Splat's `AppBuilder` and
overrides its virtual `WithCoreServices`; the builder here holds an `AppBuilder` and
implements `IAppBuilder` itself, registering its core services before the inner builder
applies the registrations. Each method returns the builder, to chain the calls on the concrete
type, where upstream returns the interface; the same methods, returning trait objects, are
those of [`IReactiveUIBuilder`](/docs/0.5.0/api/ferroui-reactiveui/builder/trait-ireactiveuibuilder/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L80)

## Members

- [`new`](#function-new)
- [`converter_service`](#function-converter_service)
- [`main_thread_scheduler`](#function-main_thread_scheduler)
- [`task_pool_scheduler`](#function-task_pool_scheduler)
- [`current`](#function-current)
- [`current_mutable`](#function-current_mutable)
- [`with_main_thread_scheduler`](#function-with_main_thread_scheduler)
- [`with_main_thread_scheduler_with`](#function-with_main_thread_scheduler_with)
- [`with_task_pool_scheduler`](#function-with_task_pool_scheduler)
- [`with_task_pool_scheduler_with`](#function-with_task_pool_scheduler_with)
- [`with_registration_on_build`](#function-with_registration_on_build)
- [`with_custom_registration`](#function-with_custom_registration)
- [`with_registration`](#function-with_registration)
- [`with_registrations`](#function-with_registrations)
- [`with_platform_services`](#function-with_platform_services)
- [`with_core_services`](#function-with_core_services)
- [`with_platform_module`](#function-with_platform_module)
- [`using_splat_module`](#function-using_splat_module)
- [`using_splat_builder`](#function-using_splat_builder)
- [`for_custom_platform`](#function-for_custom_platform)
- [`for_platforms`](#function-for_platforms)
- [`with_message_bus`](#function-with_message_bus)
- [`with_message_bus_with`](#function-with_message_bus_with)
- [`with_message_bus_instance`](#function-with_message_bus_instance)
- [`configure_view_locator`](#function-configure_view_locator)
- [`configure_suspension_driver`](#function-configure_suspension_driver)
- [`with_converter`](#function-with_converter)
- [`with_converter_of`](#function-with_converter_of)
- [`with_converter_factory`](#function-with_converter_factory)
- [`with_converter_of_factory`](#function-with_converter_of_factory)
- [`with_fallback_converter`](#function-with_fallback_converter)
- [`with_fallback_converter_factory`](#function-with_fallback_converter_factory)
- [`with_set_method_converter`](#function-with_set_method_converter)
- [`with_set_method_converter_factory`](#function-with_set_method_converter_factory)
- [`with_converters_from`](#function-with_converters_from)
- [`with_exception_handler`](#function-with_exception_handler)
- [`with_suspension_host`](#function-with_suspension_host)
- [`with_suspension_host_of`](#function-with_suspension_host_of)
- [`with_suspension_host_instance`](#function-with_suspension_host_instance)
- [`with_cache_sizes`](#function-with_cache_sizes)
- [`register_view_model`](#function-register_view_model)
- [`register_constant_view_model`](#function-register_constant_view_model)
- [`register_singleton_view_model`](#function-register_singleton_view_model)
- [`register_view`](#function-register_view)
- [`register_singleton_view`](#function-register_singleton_view)
- [`build`](#function-build)
- [`build_app`](#function-build_app)

<a id="function-new"></a>

### new

```rust
fn new(resolver: Rc<dyn IMutableDependencyResolver>, current: Option<Rc<dyn IReadonlyDependencyResolver>>) -> Self
```

A builder over `resolver`, with `current` as the resolver of the application
(`ReactiveUIBuilder(IMutableDependencyResolver, IReadonlyDependencyResolver?)`): it
initializes Splat's services in the resolver and registers its converter service there.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L98)

<a id="function-converter_service"></a>

### converter_service

```rust
fn converter_service(self: &Self) -> &Rc<ConverterService>
```

The service of the converters of the bindings (`ConverterService`): its typed, fallback and
set-method registries, which the `with_*converter*` methods fill.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L126)

<a id="function-main_thread_scheduler"></a>

### main_thread_scheduler

```rust
fn main_thread_scheduler(self: &Self) -> Option<Rc<dyn IScheduler>>
```

The scheduler of the user-interface thread the builder was given (`MainThreadScheduler`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L131)

<a id="function-task_pool_scheduler"></a>

### task_pool_scheduler

```rust
fn task_pool_scheduler(self: &Self) -> Option<Rc<dyn IScheduler>>
```

The scheduler of background work the builder was given (`TaskpoolScheduler`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L136)

<a id="function-current"></a>

### current

```rust
fn current(self: &Self) -> Option<Rc<dyn IReadonlyDependencyResolver>>
```

The resolver of the application, once known (`Current`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L141)

<a id="function-current_mutable"></a>

### current_mutable

```rust
fn current_mutable(self: &Self) -> Rc<dyn IMutableDependencyResolver>
```

The resolver the builder registers with (`CurrentMutable`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L146)

<a id="function-with_main_thread_scheduler"></a>

### with_main_thread_scheduler

```rust
fn with_main_thread_scheduler(self: &Self, scheduler: Rc<dyn IScheduler>) -> &Self
```

Sets the scheduler of the user-interface thread, which also becomes
`RxSchedulers::main_thread_scheduler` when the application is built
(`WithMainThreadScheduler(ISequencer)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L153)

<a id="function-with_main_thread_scheduler_with"></a>

### with_main_thread_scheduler_with

```rust
fn with_main_thread_scheduler_with(self: &Self, scheduler: Rc<dyn IScheduler>, set_rx_app: bool) -> &Self
```

Sets the scheduler of the user-interface thread; `set_rx_app` says whether it becomes
`RxSchedulers::main_thread_scheduler` (`WithMainThreadScheduler(ISequencer, bool)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L159)

<a id="function-with_task_pool_scheduler"></a>

### with_task_pool_scheduler

```rust
fn with_task_pool_scheduler(self: &Self, scheduler: Rc<dyn IScheduler>) -> &Self
```

Sets the scheduler of background work, which also becomes
`RxSchedulers::task_pool_scheduler` when the application is built
(`WithTaskPoolScheduler(ISequencer)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L168)

<a id="function-with_task_pool_scheduler_with"></a>

### with_task_pool_scheduler_with

```rust
fn with_task_pool_scheduler_with(self: &Self, scheduler: Rc<dyn IScheduler>, set_rx_app: bool) -> &Self
```

Sets the scheduler of background work; `set_rx_app` says whether it becomes
`RxSchedulers::task_pool_scheduler` (`WithTaskPoolScheduler(ISequencer, bool)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L174)

<a id="function-with_registration_on_build"></a>

### with_registration_on_build

```rust
fn with_registration_on_build(self: &Self, configure_action: impl Fn(&dyn IMutableDependencyResolver) -> () + 'static) -> &Self
```

Applies `configure_action` to the resolver when the application is built
(`WithRegistrationOnBuild(Action<IMutableDependencyResolver>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L182)

<a id="function-with_custom_registration"></a>

### with_custom_registration

```rust
fn with_custom_registration(self: &Self, configure_action: impl Fn(&dyn IMutableDependencyResolver) -> () + 'static) -> &Self
```

Adds registrations, applied to the resolver when the application is built
(`WithCustomRegistration(Action<IMutableDependencyResolver>)` of Splat's builder).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L189)

<a id="function-with_registration"></a>

### with_registration

```rust
fn with_registration(self: &Self, configure_action: impl FnOnce(&dyn IMutableDependencyResolver) -> ()) -> &Self
```

Applies `configure_action` to the resolver at once (`WithRegistration(Action<IMutableDependencyResolver>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L195)

<a id="function-with_registrations"></a>

### with_registrations

```rust
fn with_registrations(self: &Self, registration: &dyn IWantsToRegisterStuff) -> &Self
```

Applies `registration` to the resolver at once, through a `DependencyResolverRegistrar`
(`WithRegistration(IWantsToRegisterStuff)`), the migration path of the types that
registered their services by assembly scanning.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L203)

<a id="function-with_platform_services"></a>

### with_platform_services

```rust
fn with_platform_services(self: &Self) -> &Self
```

Registers the services of the platform, once (`WithPlatformServices`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L210)

<a id="function-with_core_services"></a>

### with_core_services

```rust
fn with_core_services(self: &Self) -> &Self
```

Registers the core services of ReactiveUI, once: the default converters, the property
observers, the view locator and the activation fetcher; and, each time, the scheduler
configuration applied when the application is built (`WithCoreServices`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L221)

<a id="function-with_platform_module"></a>

### with_platform_module

```rust
fn with_platform_module<T: IWantsToRegisterStuff + Default>(self: &Self) -> &Self
```

Applies the registrations of a new `T` at once (`WithPlatformModule<T>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L235)

<a id="function-using_splat_module"></a>

### using_splat_module

```rust
fn using_splat_module(self: &Self, registration_module: Rc<dyn IModule>) -> &Self
```

Adds a Splat module, applied when the application is built (`UsingSplatModule<T>(T)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L240)

<a id="function-using_splat_builder"></a>

### using_splat_builder

```rust
fn using_splat_builder(self: &Self, app_builder: Option<&dyn Fn(&dyn IAppBuilder) -> ()>) -> &Self
```

Calls `app_builder`, if any, with the builder as a Splat builder
(`UsingSplatBuilder(Action<IAppBuilder>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L247)

<a id="function-for_custom_platform"></a>

### for_custom_platform

```rust
fn for_custom_platform(self: &Self, main_thread_scheduler: Rc<dyn IScheduler>, platform_services: impl Fn(&dyn IMutableDependencyResolver) -> () + 'static) -> &Self
```

Configures a platform of the application's own: its main thread scheduler, and its
services, registered when the application is built
(`ForCustomPlatform(ISequencer, Action<IMutableDependencyResolver>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L257)

<a id="function-for_platforms"></a>

### for_platforms

```rust
fn for_platforms(self: &Self, platform_configurations: &[&dyn Fn(&dyn IReactiveUIBuilder) -> ()]) -> &Self
```

Applies the configuration of each platform (`ForPlatforms(params Action<IReactiveUIBuilder>[])`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L266)

<a id="function-with_message_bus"></a>

### with_message_bus

```rust
fn with_message_bus(self: &Self) -> &Self
```

Registers a new message bus when the application is built (`WithMessageBus()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L274)

<a id="function-with_message_bus_with"></a>

### with_message_bus_with

```rust
fn with_message_bus_with(self: &Self, configure: impl Fn(&dyn IMessageBus) -> () + 'static) -> &Self
```

Registers a new message bus, configured by `configure`, when the application is built
(`WithMessageBus(Action<IMessageBus>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L285)

<a id="function-with_message_bus_instance"></a>

### with_message_bus_instance

```rust
fn with_message_bus_instance(self: &Self, message_bus: Rc<dyn IMessageBus>) -> &Self
```

Registers `message_bus` when the application is built (`WithMessageBus(IMessageBus)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L296)

<a id="function-configure_view_locator"></a>

### configure_view_locator

```rust
fn configure_view_locator(self: &Self, configure: impl Fn(&DefaultViewLocator) -> () + 'static) -> &Self
```

Configures the registered `DefaultViewLocator` when the application is built, keeping the
mappings that `register_views` or `with_view_module` added; with none registered, a new one
is configured and registered as the view locator
(`ConfigureViewLocator(Action<DefaultViewLocator>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L307)

<a id="function-configure_suspension_driver"></a>

### configure_suspension_driver

```rust
fn configure_suspension_driver(self: &Self, configure: impl Fn(&Rc<dyn ISuspensionDriver>) -> () + 'static) -> &Self
```

Configures the registered suspension driver, if there is one, when the application is built
(`ConfigureSuspensionDriver(Action<ISuspensionDriver>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L328)

<a id="function-with_converter"></a>

### with_converter

```rust
fn with_converter(self: &Self, converter: Rc<dyn IBindingTypeConverter>) -> &Self
```

Registers a converter of a pair of types (`WithConverter(IBindingTypeConverter)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L341)

<a id="function-with_converter_of"></a>

### with_converter_of

```rust
fn with_converter_of<F: 'static, T: 'static>(self: &Self, converter: Rc<dyn IBindingTypeConverterOf<F, T>>) -> &Self
```

Registers a converter of `F` to `T` (`WithConverter<TFrom, TTo>(IBindingTypeConverter<TFrom, TTo>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L347)

<a id="function-with_converter_factory"></a>

### with_converter_factory

```rust
fn with_converter_factory(self: &Self, factory: impl FnOnce() -> Rc<dyn IBindingTypeConverter>) -> &Self
```

Registers the converter that `factory` creates (`WithConverter(Func<IBindingTypeConverter>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L352)

<a id="function-with_converter_of_factory"></a>

### with_converter_of_factory

```rust
fn with_converter_of_factory<F: 'static, T: 'static>(self: &Self, factory: impl FnOnce() -> Rc<dyn IBindingTypeConverterOf<F, T>>) -> &Self
```

Registers the converter of `F` to `T` that `factory` creates
(`WithConverter<TFrom, TTo>(Func<IBindingTypeConverter<TFrom, TTo>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L358)

<a id="function-with_fallback_converter"></a>

### with_fallback_converter

```rust
fn with_fallback_converter(self: &Self, converter: Rc<dyn IBindingFallbackConverter>) -> &Self
```

Registers a fallback converter, asked when no converter of the exact pair of types is
found (`WithFallbackConverter(IBindingFallbackConverter)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L367)

<a id="function-with_fallback_converter_factory"></a>

### with_fallback_converter_factory

```rust
fn with_fallback_converter_factory(self: &Self, factory: impl FnOnce() -> Rc<dyn IBindingFallbackConverter>) -> &Self
```

Registers the fallback converter that `factory` creates
(`WithFallbackConverter(Func<IBindingFallbackConverter>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L374)

<a id="function-with_set_method_converter"></a>

### with_set_method_converter

```rust
fn with_set_method_converter(self: &Self, converter: Rc<dyn ISetMethodBindingConverter>) -> &Self
```

Registers a set-method converter, for the targets set through a method
(`WithSetMethodConverter(ISetMethodBindingConverter)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L380)

<a id="function-with_set_method_converter_factory"></a>

### with_set_method_converter_factory

```rust
fn with_set_method_converter_factory(self: &Self, factory: impl FnOnce() -> Rc<dyn ISetMethodBindingConverter>) -> &Self
```

Registers the set-method converter that `factory` creates
(`WithSetMethodConverter(Func<ISetMethodBindingConverter>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L387)

<a id="function-with_converters_from"></a>

### with_converters_from

```rust
fn with_converters_from(self: &Self, resolver: &dyn IReadonlyDependencyResolver) -> &Self
```

Registers the converters of the three kinds that `resolver` has, a migration helper from
the registration in Splat (`WithConvertersFrom(IReadonlyDependencyResolver)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L393)

<a id="function-with_exception_handler"></a>

### with_exception_handler

```rust
fn with_exception_handler(self: &Self, exception_handler: Rc<dyn IObserver<ObservableError>>) -> &Self
```

Sets the handler of the errors that no `thrown_exceptions` subscriber handles
(`WithExceptionHandler(IObserver<Exception>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L411)

<a id="function-with_suspension_host"></a>

### with_suspension_host

```rust
fn with_suspension_host(self: &Self) -> &Self
```

Sets a suspension host, which becomes the one of `RxSuspension` when the application is
built (`WithSuspensionHost()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L418)

<a id="function-with_suspension_host_of"></a>

### with_suspension_host_of

```rust
fn with_suspension_host_of<T: 'static>(self: &Self) -> &Self
```

Sets a suspension host of an application state of type `T`
(`WithSuspensionHost<TAppState>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L424)

<a id="function-with_suspension_host_instance"></a>

### with_suspension_host_instance

```rust
fn with_suspension_host_instance(self: &Self, suspension_host: Rc<dyn ISuspensionHost>) -> &Self
```

Sets `suspension_host` as the suspension host, the common part of
`with_suspension_host` and
`with_suspension_host_of`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L431)

<a id="function-with_cache_sizes"></a>

### with_cache_sizes

```rust
fn with_cache_sizes(self: &Self, small_cache_limit: usize, big_cache_limit: usize) -> &Self
```

Sets the limits of the caches of ReactiveUI (`WithCacheSizes(int, int)`).
## Panics
When a limit is zero (`ArgumentOutOfRangeException`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L440)

<a id="function-register_view_model"></a>

### register_view_model

```rust
fn register_view_model<VM: IReactiveObject + Default>(self: &Self) -> &Self
```

Registers `VM`, a new view model at each resolution (`RegisterViewModel<TViewModel>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L450)

<a id="function-register_constant_view_model"></a>

### register_constant_view_model

```rust
fn register_constant_view_model<VM: IReactiveObject + Default>(self: &Self) -> &Self
```

Registers one view model of `VM`, created now, as a constant
(`RegisterConstantViewModel<TViewModel>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L456)

<a id="function-register_singleton_view_model"></a>

### register_singleton_view_model

```rust
fn register_singleton_view_model<VM: IReactiveObject + Default>(self: &Self) -> &Self
```

Registers `VM`, one view model created at the first resolution
(`RegisterSingletonViewModel<TViewModel>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L462)

<a id="function-register_view"></a>

### register_view

```rust
fn register_view<V: IViewForOf<VM> + Default + 'static, VM: IReactiveObject>(self: &Self) -> &Self
```

Registers `V` as the view of `VM`, a new view at each resolution
(`RegisterView<TView, TViewModel>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L468)

<a id="function-register_singleton_view"></a>

### register_singleton_view

```rust
fn register_singleton_view<V: IViewForOf<VM> + Default + 'static, VM: IReactiveObject>(self: &Self) -> &Self
```

Registers `V` as the view of `VM`, one view created at the first resolution
(`RegisterSingletonView<TView, TViewModel>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder.rs#L476)

<a id="function-build"></a>

### build

```rust
fn build(self: &Self) -> &Self
```

Builds the application once, with its core services and registrations, then initializes
the state of ReactiveUI: the limits of the caches, the handler of the errors, the
suspension host, the converters of the bindings and the message bus; and marks ReactiveUI as
initialized (`RxAppBuilder::ensure_initialized`). A second build returns the application
as it is (`Build()`).
## Panics
When the application has no resolver (`InvalidOperationException`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder_build.rs#L20)

<a id="function-build_app"></a>

### build_app

```rust
fn build_app(self: &Self) -> &Self
```

Builds the application (`BuildApp()`), as `build` does.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/builder/reactive_ui_builder_build.rs#L41)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ReactiveUIInstanceMixins`](/docs/0.5.0/api/ferroui-reactiveui/builder/trait-reactiveuiinstancemixins/)
- [`ReactiveUIBuilderExt`](/docs/0.5.0/api/ferroui-reactiveui/builder/trait-reactiveuibuilderext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ReactiveUIBuilderMixins`](/docs/0.5.0/api/ferroui-reactiveui/builder/trait-reactiveuibuildermixins/)
- `Debug`
- [`IAppInstance`](/docs/0.5.0/api/ferroui-splat/builder/trait-iappinstance/)
- [`IReactiveUIInstance`](/docs/0.5.0/api/ferroui-reactiveui/builder/trait-ireactiveuiinstance/)
- [`IAppBuilder`](/docs/0.5.0/api/ferroui-splat/builder/trait-iappbuilder/)
- [`IReactiveUIBuilder`](/docs/0.5.0/api/ferroui-reactiveui/builder/trait-ireactiveuibuilder/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
