Skip to content

)}

DummySuspensionDriverUnsafe.LoadState() method

Defined in

Type: DummySuspensionDriverUnsafe Namespace: ReactiveUI Assembly: ReactiveUI.Unsafe.dll

Applies to

net11.0, net11.0-ios27.2, net11.0-macos27.2, net11.0-tvos27.2, net11.0-android37.0, net11.0-maccatalyst27.2, net10.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net48, net47, net471, net472, net481

Overloads

  1. public IObservable<object?> LoadState()

  2. public IObservable<T?> LoadState<T>(JsonTypeInfo<T> typeInfo)

1. Overload

Attributes: [RequiresUnreferencedCode("Implementations commonly use reflection-based serialization. Prefer LoadState<T>(JsonTypeInfo<T>) for trimming or AOT scenarios.")] [RequiresDynamicCode("Implementations commonly use reflection-based serialization. Prefer LoadState<T>(JsonTypeInfo<T>) for trimming or AOT scenarios.")]

public IObservable<object?> LoadState()

View source

Inherited documentation

These docs were inherited from IUnsafeSuspensionDriver. The member doesn't override them on this type.

Summary: Loads the application state from persistent storage using reflection-based serialization.

Returns: IObservable -- An observable that produces the deserialized application state (or null).

2. Overload

public IObservable<T?> LoadState<T>(JsonTypeInfo<T> typeInfo)

View source

Inherited documentation

These docs were inherited from ISuspensionDriver. The member doesn't override them on this type.

Summary: Loads application state from persistent storage using source-generated System.Text.Json metadata.

Type parameters

NameDescription
TThe expected state type.

Parameters

NameTypeDescription
typeInfoJsonTypeInfoThe source-generated metadata for T.

Returns: IObservable -- An observable that produces the deserialized state (or null).