ChatListener
com.boldchat.visitor.api
Interface ChatListener
-
public interface ChatListener
The listener that could be called at any time during an active chat session. This should be set before the call toChat.startChat(ChatStartListener)
, and events may occur at any time untilChat.finishChat(ChatFinishedListener)
has been called.
-
-
Method Detail
-
onChatUpdated
void onChatUpdated(Chat chat)
The information about the active chat has been updated.- Parameters:
chat
- The chat record that was updated, this will be the same instance that was returned byCreateChatListener#onChatCreated(PreChat, Chat, java.util.Map)
- See Also:
Chat.getEnded()
,Chat.getEndedReason()
,Chat.getAnswered()
-
onChatFatalError
void onChatFatalError(int failType, java.lang.String message)
The chat has encountered a fatal error, and was not able to recover.- Parameters:
failType
- TheErrorCodes
that occurred.message
- An error message related to the fatal error.
-
-