Skip to content

)}

BundleSuspensionDriver.LoadState() method

Defined in

Type: BundleSuspensionDriver Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll

Applies to

net10.0-android36.0

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 ISuspensionDriver. The member doesn't override them on this type.

Summary: Loads the application state from persistent storage.

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

Remarks

        This member typically relies on reflection-based serialization and is not
        trimming or AOT friendly.
        

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).