ChatStartListener
com.boldchat.visitor.api
Interface ChatStartListener
-
public interface ChatStartListener
Listener callback that is called after the chat has started and the WebSocket connection has been established.
-
-
Method Summary
Methods Modifier and Type Method and Description void
onChatStarted()
The chat has been started, and is ready to start receiving messages.void
onChatStartFailed(int failType, java.lang.String message)
The chat failed to startvoid
onChatUnavailable(UnavailableReason unavailableReason, UnavailableForm unavailableForm)
Chat is currently unavailable
-
-
-
Method Detail
-
onChatStarted
void onChatStarted()
The chat has been started, and is ready to start receiving messages.
-
onChatStartFailed
void onChatStartFailed(int failType, java.lang.String message)
The chat failed to start- Parameters:
failType
- TheErrorCodes
for this type of failure.message
- The message that attempts to explain the reason for the failure.
-
onChatUnavailable
void onChatUnavailable(UnavailableReason unavailableReason, UnavailableForm unavailableForm)
Chat is currently unavailable- Parameters:
unavailableReason
- The reason for chat to be unavailableunavailableForm
- The unavailable form if one is enabled.
-
-