Class MauiReactiveUIBuilderExtensions
- Namespace
- ReactiveUI.Builder
- Assembly
- ReactiveUI.Maui.dll
MAUI-specific extensions for the ReactiveUI builder.
- Inheritance
-
Maui
Reactive UIBuilder Extensions
Properties
MauiMainThreadScheduler
Gets the MAUI main thread scheduler.
Property Value
- IScheduler
The MAUI main thread scheduler.
Methods
UseReactiveUI(MauiAppBuilder, IDispatcher)
Uses the reactive UI.
[RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")]
[RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")]
public static MauiAppBuilder UseReactiveUI(this MauiAppBuilder builder, IDispatcher dispatcher)
Parameters
builderMauiApp Builder The builder.
dispatcherIDispatcherThe dispatcher.
Returns
- Maui
App Builder A The builder instance for chaining.
Exceptions
- Argument
Null Exception builder.
UseReactiveUI(MauiAppBuilder, Action<IReactiveUIBuilder>)
Uses the reactive UI.
public static MauiAppBuilder UseReactiveUI(this MauiAppBuilder builder, Action<IReactiveUIBuilder> withReactiveUIBuilder)
Parameters
builderMauiApp Builder The builder.
withReactiveUIBuilderAction<IReactiveUIBuilder >The reactive UI builder.
Returns
- Maui
App Builder A The builder instance for chaining.
Exceptions
- Argument
Null Exception builder.
WithMaui(IReactiveUIBuilder, IDispatcher?)
Configures ReactiveUI for MAUI platform with appropriate schedulers and platform services.
[RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")]
[RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")]
public static IReactiveUIBuilder WithMaui(this IReactiveUIBuilder builder, IDispatcher? dispatcher = null)
Parameters
builderIReactiveUIBuilder The builder instance.
dispatcherIDispatcherThe MAUI dispatcher to use for the main thread scheduler.
Returns
- IReactive
UIBuilder The builder instance for chaining.
WithMauiScheduler(IReactiveUIBuilder, IDispatcher?)
Adds the MAUI scheduler.
public static IReactiveUIBuilder WithMauiScheduler(this IReactiveUIBuilder builder, IDispatcher? dispatcher = null)
Parameters
builderIReactiveUIBuilder The builder.
dispatcherIDispatcherOptional dispatcher instance to derive the scheduler from.
Returns
- IReactive
UIBuilder The builder instance for chaining.