Bold360 and BoldChat Developer Center

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 to Chat.startChat(ChatStartListener), and events may occur at any time until Chat.finishChat(ChatFinishedListener) has been called.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void onChatFatalError(int failType, java.lang.String message)
      The chat has encountered a fatal error, and was not able to recover.
      void onChatUpdated(Chat chat)
      The information about the active chat has been updated.
    • 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 by CreateChatListener#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 - The ErrorCodes that occurred.
        message - An error message related to the fatal error.