java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.salesforce.android.chat.core.model.ChatSessionState |
The lifecycle session states for a Chat session are determined by a linear state machine. The order through which the states progress is as follows:
These states will be passed to registered SessionStateListener
instances throughout the duration of the session.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ChatSessionState | Connected | An agent has accepted the chat request. | |||||||||
ChatSessionState | Connecting | Chat is attempting to connect to LiveAgent with the information provided via
ChatConfiguration . |
|||||||||
ChatSessionState | Disconnected | The session has ended. | |||||||||
ChatSessionState | Ending | The session is being stopped and is currently undergoing cleanup procedures. | |||||||||
ChatSessionState | InQueue | A connection to LiveAgent has been established and the chat request has been placed in the queue. | |||||||||
ChatSessionState | Initializing | Chat is currently performing initialization tasks on the device. | |||||||||
ChatSessionState | Ready | Ready is the initial resting state for the session. | |||||||||
ChatSessionState | Verification | Verifying connection credentials to ensure that they are valid. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
isPostSession()
Determine if this
ChatSessionState represents a post-Connected state where the client is
no longer connected to an Agent and the session is being cleaned up or has ended. | ||||||||||
static ChatSessionState | valueOf(String name) | ||||||||||
final static ChatSessionState[] | values() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
An agent has accepted the chat request. This state represents an active session with an agent.
The agent's information, status and chat messages will be passed to registered
AgentListener
instances.
Chat is attempting to connect to LiveAgent with the information provided via
ChatConfiguration
.
The session has ended. A reason for why the session has ended will be passed to
onSessionEnded(ChatEndReason)
.
The session is being stopped and is currently undergoing cleanup procedures.
A connection to LiveAgent has been established and the chat request has been placed in the queue.
Chat is currently performing initialization tasks on the device.
Verifying connection credentials to ensure that they are valid.
If the getLiveAgentPod()
is out of date then it will be updated
for the current session.
Determine if this ChatSessionState
represents a post-Connected state where the client is
no longer connected to an Agent and the session is being cleaned up or has ended.