Interface ISuspensionDriver
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
ISuspensionDriver represents a class that can load/save state to persistent storage. Most platforms have a basic implementation of this class, but you probably want to write your own.
public interface ISuspensionDriver
- Extension Methods
Methods
InvalidateState()
Invalidates the application state (i.e. deletes it from disk).
IObservable<Unit> InvalidateState()
Returns
- IObservable<Unit>
A completed observable.
LoadState()
Loads the application state from persistent storage.
IObservable<object?> LoadState()
Returns
- IObservable<object>
An object observable.
SaveState(object)
Saves the application state to disk.
IObservable<Unit> SaveState(object state)
Parameters
state
objectThe application state.
Returns
- IObservable<Unit>
A completed observable.