Skip to content

IStateHost interface

Defined in

Namespace: ReactiveMarbles.Mvvm Assembly: ReactiveMarbles.Mvvm.dll Full name: ReactiveMarbles.Mvvm.IStateHost Modifiers: public abstract

Summary

        ISuspensionHost represents a standardized version of the events that the
        host operating system publishes. Subscribe to these events in order to
        handle app suspend / resume.
        

Applies to

net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0

Class hierarchy
classDiagram
class IStateHost
class IRxObject {
    <>
}
IRxObject <|.. IStateHost
class INotifyPropertyChanged {
    <>
}
INotifyPropertyChanged <|.. IStateHost
class INotifyPropertyChanging {
    <>
}
INotifyPropertyChanging <|.. IStateHost
class IThrownExceptions {
    <>
}
IThrownExceptions <|.. IStateHost

Implements: IRxObject, INotifyPropertyChanged, INotifyPropertyChanging, IThrownExceptions

Properties

NameSummary
IsLaunchingNewGets or sets the observable which signals when the application is launching new. This can happen when an app has recently crashed, as well as the first time the app has been...
IsResumingGets or sets the observable which signals when the application is resuming from suspended state (i.e. it was previously running but its process was destroyed).
IsUnpausingGets or sets the observable which signals when the application is activated. Note that this may mean that your process was not actively running before this signal.
ShouldPersistStateGets or sets the observable which signals when the application should persist its state to disk.
ShouldInvalidateStateGets or sets the observable which signals that the saved application state should be deleted, this usually is called after an app has crashed.
CreateNewAppStateGets or sets a function that can be used to create a new application state - usually this method just calls 'new' on an object.
AppStateGets or sets the current application state. The "application state" is a notion entirely defined via the client application - the framework places no restrictions on ...