public static class ZopimChatApi.SessionConfig extends Object
Prepares new chat session config. Provided configuration will apply only to this session.
Once configured call build() to return a ZopimChatApi
instance to use.
Modifier and Type | Field and Description |
---|---|
protected String |
department |
protected String |
referrer |
protected String[] |
tags |
protected String |
title |
Constructor and Description |
---|
SessionConfig() |
Modifier and Type | Method and Description |
---|---|
ChatApi |
build(FragmentActivity activity)
Starts the chat session.
|
T |
department(String department)
Sets department to the configuration builder.
|
T |
tags(String... tags)
Sets tags to the configuration builder.
|
T |
visitorPathOne(String visitorPath)
Sets visitor path as additional info visible in the Zopim chat dashboard.
|
T |
visitorPathTwo(String visitorPath)
Sets visitor path as additional info visible in the Zopim chat dashboard.
|
protected String department
protected String[] tags
protected String title
protected String referrer
@NonNull public ChatApi build(FragmentActivity activity)
If session configuration was provided it will apply to this chat session.
Otherwise if the global ZopimChatApi.DefaultConfig
configuration is available it will be used to configure this chat session.
It will start a service that represents chat session and will bind to that service. Service connection is managed by ZopimChatApi.ChatServiceBinder
activity
- that holds the chat session@NonNull public T department(String department)
department
- name@NonNull public T tags(String... tags)
tags
- for the chat@NonNull public T visitorPathOne(String visitorPath)
Additional information configured in the dashboard used to help identify the origin of the chat.
visitorPath
- as extra info visible on the dashboard@NonNull public T visitorPathTwo(String visitorPath)
Additional information configured in the dashboard used to help identify the origin of the chat.
visitorPath
- as extra info visible on the dashboard