java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.salesforce.android.sos.api.SosState |
Enumeration of the various states of an SOS session. Activities may listen for changes in this
state by implementing the SosListener
interface.
The states a session can be in as well as their transitions are illustrated here.
See SosListener
to learn how to listen to state changes.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SosState | AgentJoining | An agent has accepted the session and is currently joining. | |||||||||
SosState | Connected | The agent has joined the session and an A/V connection has been established. | |||||||||
SosState | Disconnected | The user has disconnected from the session; the session is ended. | |||||||||
SosState | Idle | The SOS session is created but has not begun initializing. | |||||||||
SosState | Initializing | The SOS session is initializing and has not yet been established on the SOS server. | |||||||||
SosState | Paused | The session is currently paused. | |||||||||
SosState | PendingDisconnect | The agent has disconnected from the session. | |||||||||
SosState | Reconnecting | The session is being reconnected after an interruption. | |||||||||
SosState | WaitingForAgent | The session has been established on the server and is currently waiting to be accepted by an agent. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static SosState | valueOf(String name) | ||||||||||
final static SosState[] | values() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
An agent has accepted the session and is currently joining.
The agent has joined the session and an A/V connection has been established.
The user has disconnected from the session; the session is ended.
The SOS session is created but has not begun initializing. This is typically when the initial dialog is up waiting for the user to confirm session initiation.
The SOS session is initializing and has not yet been established on the SOS server.
The agent has disconnected from the session. The session will disconnect if no other agent connects within 10 seconds.
The session has been established on the server and is currently waiting to be accepted by an agent.