Skip to content

AppSupportJsonSuspensionDriver class

Attributes: [DebuggerDisplay("AppSupportJsonSuspensionDriver")]

Defined in

Namespace: ReactiveUI Assembly: ReactiveUI.dll Full name: ReactiveUI.AppSupportJsonSuspensionDriver Modifiers: public sealed

Summary

View source

Loads and saves state to persistent storage under the platform Application Support directory.

Applies to

net11.0-ios27.2, net11.0-maccatalyst27.2, net11.0-macos27.2, net11.0-tvos27.2, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net10.0-macos26.0

Class hierarchy
classDiagram
class AppSupportJsonSuspensionDriver
class ISuspensionDriver {
    <>
}
ISuspensionDriver <|.. AppSupportJsonSuspensionDriver

Implements: ISuspensionDriver

Remarks

Uses source-generated System.Text.Json via overloads accepting JsonTypeInfo. For reflection-based serialization, use AppSupportJsonSuspensionDriverUnsafe from ReactiveUI.Unsafe.

The persisted file name is state.dat.

Constructors

NameSummary
.ctorInitializes a new instance of the [AppSupportJsonSuspensionDriver](# class using the default Data subdirectory beneath Application Support.

Methods

NameSummary
LoadStateLoads application state from persistent storage using source-generated System.Text.Json metadata.
SaveStateSaves application state to persistent storage using source-generated System.Text.Json metadata.
InvalidateStateInvalidates the persisted application state (for example, by deleting it from disk).
Inherited members