AppSupportJsonSuspensionDriver class¶
Attributes: [DebuggerDisplay("AppSupportJsonSuspensionDriver")]
Defined in
Namespace: ReactiveUI Assembly: ReactiveUI.dll Full name: ReactiveUI.AppSupportJsonSuspensionDriver Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Loads and saves state to persistent storage under the platform Application Support directory.
Applies to
net11.0-maccatalyst27.2, net11.0-ios27.2, net11.0-macos27.2, net11.0-tvos27.2, net10.0-maccatalyst26.0, net10.0-ios26.0, net10.0-tvos26.0, net10.0-macos26.0
Class hierarchy
classDiagram
class AppSupportJsonSuspensionDriver
class ISuspensionDriver {
<<interface>>
}
ISuspensionDriver <|.. AppSupportJsonSuspensionDriver
Implements: ISuspensionDriver
Remarks¶
Uses source-generated System.Text.Json via overloads accepting JsonTypeInfo (opens in a new tab). For reflection-based serialization, use AppSupportJsonSuspensionDriverUnsafe from ReactiveUI.Unsafe.
The persisted file name is state.dat.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [AppSupportJsonSuspensionDriver](# class using the default Data subdirectory beneath Application Support. |
Methods¶
| Name | Summary |
|---|---|
| LoadState | Loads application state from persistent storage using source-generated System.Text.Json metadata. |
| SaveState | Saves application state to persistent storage using source-generated System.Text.Json metadata. |
| InvalidateState | Invalidates the persisted application state (for example, by deleting it from disk). |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)