Bold360 and BoldChat Developer Center

CreateChatListener

com.boldchat.visitor.api

Interface CreateChatListener



  • public interface CreateChatListener
    The listener callback from Account.createChat(CreateChatListener) that receives events about a chat being created.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void onChatCreated(PreChat preChat, Chat chat)
      The chat was successfully created.
      void onChatCreateFailed(int failType, java.lang.String message)
      The chat failed to be created.
      void onChatUnavailable(Chat chat, UnavailableReason unavailableReason, UnavailableForm unavailableForm, java.util.Map<java.lang.String,java.lang.String> brandings)
      Chat is currently unavailable
    • Method Detail

      • onChatCreated

        void onChatCreated(PreChat preChat,
                         Chat chat)
        The chat was successfully created.
        Parameters:
        preChat - The pre-chat form, or null if pre-chat is not enabled
        chat - The chat object. When ready (after processing pre-chat) Chat.startChat(ChatStartListener) should be called.
      • onChatUnavailable

        void onChatUnavailable(Chat chat,
                             UnavailableReason unavailableReason,
                             UnavailableForm unavailableForm,
                             java.util.Map<java.lang.String,java.lang.String> brandings)
        Chat is currently unavailable
        Parameters:
        unavailableReason - The reason for chat to be unavailable
        unavailableForm - The unavailable form if one is enabled.
        brandings - The branding values for the unavailable form.
      • onChatCreateFailed

        void onChatCreateFailed(int failType,
                              java.lang.String message)
        The chat failed to be created.
        Parameters:
        failType - The ErrorCodes
        message - The message related to the failure.