Bold360 and BoldChat Developer Center

BoldChatSession.BoldChatSessionListener

com.boldchat.sdk

Interface BoldChatSession.BoldChatSessionListener

  • All Known Implementing Classes:
    BoldChatActivity
    Enclosing class:
    BoldChatSession


    public static interface BoldChatSession.BoldChatSessionListener
    Callback BoldChatSessionListener to receive events on major state changes of the chat session.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void chatSessionClosed()
      Everything related to the chat session has been completed, and items related to the chat should be closed.
      void chatSessionCreated()
      The chat session has been created, but not yet started.
      void chatSessionEnded()
      The chat session has ended.
      void chatSessionStarted()
      The chat session has been started.
      void messageArrived(java.lang.String message, java.lang.String sender, java.util.Date sent)
      Indicates a new message from an operator has arrived.
      void operatorTyping()
      Indicates than an operator is currently typing a message.
    • Method Detail

      • chatSessionCreated

        void chatSessionCreated()
        The chat session has been created, but not yet started. At this point it may be showing pre-chat form, or the unavailable email form. If it doesn't need to show a form, then chatSessionStarted() will be called shortly after this method has been called.
      • chatSessionStarted

        void chatSessionStarted()
        The chat session has been started. At this point the operator and visitor will be able to send messages back and forth to each other.
      • messageArrived

        void messageArrived(java.lang.String message,
                          java.lang.String sender,
                          java.util.Date sent)
        Indicates a new message from an operator has arrived.
        Parameters:
        message - The text of the message that arrived.
        sender - The name of the operator that sent the message.
        sent - The time that the message was sent.
      • operatorTyping

        void operatorTyping()
        Indicates than an operator is currently typing a message.
      • chatSessionEnded

        void chatSessionEnded()
        The chat session has ended. At this point the visitor and operator are not longer sending messages, and the post-chat survey may be displayed.
      • chatSessionClosed

        void chatSessionClosed()
        Everything related to the chat session has been completed, and items related to the chat should be closed.