Package zendesk.chat

Class ChatProvidersConfiguration



  • public class ChatProvidersConfiguration
    extends java.lang.Object
    Default configuration used when starting chats from this SDK. Sample usage: To set a department where chats will be routed by default;
    
     Chat.INSTANCE.setChatProvidersConfiguration(
        ChatProvidersConfiguration
           .builder(Chat.INSTANCE.getChatProvidersConfiguration())
           .withDepartment("Support"))
           .build()
     
    To set information about the visitor that will be included in the next chat;
    
     Chat.INSTANCE.setChatProvidersConfiguration(
        ChatProvidersConfiguration
           .builder(Chat.INSTANCE.getChatProvidersConfiguration())
           .withVisitorInfo(
              VisitorInfo
                 .builder()
                 .withEmail("user@testemail.com")
                 .build())
           .build()