com.salesforce.android.chat.ui.ChatUIClient |
Public API for Chat UI
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract ChatUIClient |
addPreChatUIListener(PreChatUIListener preChatUIListener)
Register a
PreChatUIListener with this ChatUIClient to receive information about the
PreChat UI. | ||||||||||
abstract ChatUIClient |
addSessionInfoListener(SessionInfoListener sessionInfoListener)
Register a
SessionInfoListener with this ChatClient to receive session information. | ||||||||||
abstract ChatUIClient |
addSessionStateListener(SessionStateListener sessionStateListener)
Register a
SessionStateListener with this ChatUIClient to receive state changes for the
chat session. | ||||||||||
abstract void |
endChatSession()
End the Chat Session immediately.
| ||||||||||
abstract ChatSessionState |
getCurrentSessionState()
Returns the current state of the chat session.
| ||||||||||
abstract ChatUIClient |
removePreChatUIListener(PreChatUIListener preChatUIListener)
Unregister a
PreChatUIListener from this ChatUIClient instance. | ||||||||||
abstract ChatUIClient |
removeSessionInfoListener(SessionInfoListener sessionInfoListener)
Unregister a
SessionInfoListener from this ChatClient instance. | ||||||||||
abstract ChatUIClient |
removeSessionStateListener(SessionStateListener sessionStateListener)
Unregister a
SessionStateListener from this ChatClient instance. | ||||||||||
abstract Async<Boolean> |
startChatSession(Activity activity)
Start a Chat Session.
|
Register a PreChatUIListener
with this ChatUIClient to receive information about the
PreChat UI.
preChatUIListener | A PreChatUIListener instance |
---|
Register a SessionInfoListener
with this ChatClient to receive session information.
sessionInfoListener | A SessionInfoListener instance |
---|
Register a SessionStateListener
with this ChatUIClient to receive state changes for the
chat session.
sessionStateListener | A SessionStateListener instance |
---|
End the Chat Session immediately.
Returns the current state of the chat session.
Unregister a PreChatUIListener
from this ChatUIClient instance.
preChatUIListener | A PreChatUIListener instance |
---|
Unregister a SessionInfoListener
from this ChatClient instance.
sessionInfoListener | A SessionInfoListener instance |
---|
Unregister a SessionStateListener
from this ChatClient instance.
sessionStateListener | A SessionStateListener instance |
---|
Start a Chat Session.
The onResult(Async.ResultHandler)
will provide a boolean result which
if true signals that a session has been successfully started.
If the result is false then the session was aborted before it was started. An example for how this could happen would be a user deciding not to proceed past the PreChat phase.