Object ApplicationStates

  • All Implemented Interfaces:

    
    public class ApplicationStates
    
                        

    Represents the state holder of the application. When the application state changes, the state change producer will notify this holder, then the state will be saved inside this, and notify the observers which are interested in the state changes. For example, if one service wants to do something when the application is brought to background, it can observe the ApplicationState.OnFrontChange, and if the operation also depends on other state, for example, http client must be ready, it can query this state holder for that state.