Application State
ApplicationState is intended to be used in MobileService.onStateChange method (possibly in when clause). To make its usage consistent, make all the subclasses data class, even SettingsParameterReady and HTTPClientReady may not need the ready parameter. Sample code: when (state) { is ApplicationState.HTTPClientReady -> httpClientReady = state.ready is ApplicationState.AuthenticationChange -> authenticated = state.authenticated ... }
Inheritors
Types
Represents the state when application version is inactive.
Represents the application lock status, when put into background and timeout, the app is in 'locked' state, when unlocked with the passcode or biometric credentials, the app is in 'unlocked' state.
Represents the state that a session is successfully established with the server, it will be notified out during both onboarding and restore flows.
Represents the state that the client policy is retrieved from the server side.
The CustomTabs visibility state.
Host app token renewed.
Represents the state when 'okHttpClient' is set into 'ClientProvider', it will only notified once
Represents the current network state, either network is available, or not
Represents the state that the app is brought up to the foreground or put into the background
Represents the state when user switching happened. This will be used in a multiple user mode app
Represents the state when 'SettingsParameter' is set into 'SettingsProvider'.