Class ApplicationState
-
- All Implemented Interfaces:
public class ApplicationStateApplicationState 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 classApplicationState.SettingsParameterReadyRepresents the state when 'SettingsParameter' is set into 'SettingsProvider'.
public final classApplicationState.HTTPClientReadyRepresents the state when 'okHttpClient' is set into 'ClientProvider', it will only notified once
public final classApplicationState.AuthenticationChangeRepresents the state that a session is successfully established with the server, it will be notified out during both onboarding and restore flows.
public final classApplicationState.OnFrontChangeRepresents the state that the app is brought up to the foreground or put into the background
public final classApplicationState.OnUserSwitchRepresents the state when user switching happened. This will be used in a multiple user mode app
public final classApplicationState.NetworkStateRepresents the current network state, either network is available, or not
public final classApplicationState.ApplicationLockRepresents 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 classApplicationState.ApplicationInactiveRepresents the state when application version is inactive.
public final classApplicationState.CustomTabsVisibilityThe CustomTabs visibility state.
public final classApplicationState.HostTokenRenewedHost app token renewed.
public final classApplicationState.ClientPolicyRetrievedRepresents the state that the client policy is retrieved from the server side.
-