Table of Contents

Class MauiReactiveUIBuilderExtensions

Namespace
ReactiveUI.Builder
Assembly
ReactiveUI.Maui.dll

MAUI-specific extensions for the ReactiveUI builder.

public static class MauiReactiveUIBuilderExtensions
Inheritance
MauiReactiveUIBuilderExtensions

Properties

MauiMainThreadScheduler

Gets the MAUI main thread scheduler.

public static IScheduler MauiMainThreadScheduler { get; }

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

builder MauiAppBuilder

The builder.

dispatcher IDispatcher

The dispatcher.

Returns

MauiAppBuilder

A The builder instance for chaining.

Exceptions

ArgumentNullException

builder.

UseReactiveUI(MauiAppBuilder, Action<IReactiveUIBuilder>)

Uses the reactive UI.

public static MauiAppBuilder UseReactiveUI(this MauiAppBuilder builder, Action<IReactiveUIBuilder> withReactiveUIBuilder)

Parameters

builder MauiAppBuilder

The builder.

withReactiveUIBuilder Action<IReactiveUIBuilder>

The reactive UI builder.

Returns

MauiAppBuilder

A The builder instance for chaining.

Exceptions

ArgumentNullException

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

builder IReactiveUIBuilder

The builder instance.

dispatcher IDispatcher

The MAUI dispatcher to use for the main thread scheduler.

Returns

IReactiveUIBuilder

The builder instance for chaining.

WithMauiScheduler(IReactiveUIBuilder, IDispatcher?)

Adds the MAUI scheduler.

public static IReactiveUIBuilder WithMauiScheduler(this IReactiveUIBuilder builder, IDispatcher? dispatcher = null)

Parameters

builder IReactiveUIBuilder

The builder.

dispatcher IDispatcher

Optional dispatcher instance to derive the scheduler from.

Returns

IReactiveUIBuilder

The builder instance for chaining.