Class ApplicationState
-
- All Implemented Interfaces:
public class ApplicationState
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 ... }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ApplicationState.SettingsParameterReady
Represents the state when 'SettingsParameter' is set into 'SettingsProvider'.
public final class
ApplicationState.HTTPClientReady
Represents the state when 'okHttpClient' is set into 'ClientProvider', it will only notified once
public final class
ApplicationState.AuthenticationChange
Represents the state that a session is successfully established with the server, it will be notified out during both onboarding and restore flows.
public final class
ApplicationState.OnFrontChange
Represents the state that the app is brought up to the foreground or put into the background
public final class
ApplicationState.OnUserSwitch
Represents the state when user switching happened. This will be used in a multiple user mode app
public final class
ApplicationState.NetworkState
Represents the current network state, either network is available, or not
public final class
ApplicationState.ApplicationLock
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.
public final class
ApplicationState.ApplicationInactive
Represents the state when application version is inactive.
public final class
ApplicationState.CustomTabsVisibility
The CustomTabs visibility state.
public class
ApplicationState.HostTokenRenewed
Host app token renewed.
public final class
ApplicationState.ClientPolicyRetrieved
Represents the state that the client policy is retrieved from the server side.
-