public static class ZopimChatApi.SessionConfig
extends java.lang.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 java.lang.String |
department |
protected java.lang.String |
referrer |
protected java.lang.String[] |
tags |
protected java.lang.String |
title |
Constructor and Description |
---|
SessionConfig() |
Modifier and Type | Method and Description |
---|---|
ChatApi |
build(android.support.v4.app.FragmentActivity activity)
Starts the chat session.
|
T |
department(java.lang.String department)
Sets department to the configuration builder.
|
T |
tags(java.lang.String... tags)
Sets tags to the configuration builder.
|
T |
visitorPathOne(java.lang.String visitorPath)
Sets visitor path as additional info visible in the Zopim chat dashboard.
|
T |
visitorPathTwo(java.lang.String visitorPath)
Sets visitor path as additional info visible in the Zopim chat dashboard.
|
protected java.lang.String department
protected java.lang.String[] tags
protected java.lang.String title
protected java.lang.String referrer
@NonNull public ChatApi build(android.support.v4.app.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 ChatServiceBinder
activity
- that holds the chat session@NonNull public T department(java.lang.String department)
department
- name@NonNull public T tags(java.lang.String... tags)
tags
- for the chat@NonNull public T visitorPathOne(java.lang.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(java.lang.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