public static class ZopimChatApi.DefaultConfig<T extends ZopimChatApi.DefaultConfig> extends Object
Configuration specified here will be applicable to all chat sessions that get started. This configuration can be overridden by a ZopimChatApi.SessionConfig
configuration provided when starting a new chat.
ZopimChatApi.SessionConfig
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
department |
protected boolean |
disableVisitorInfoStorage |
protected Long |
initializationTimeout |
protected Long |
reconnectTimeout |
protected String |
referrer |
protected Long |
sessionTimeout |
protected String[] |
tags |
protected String |
title |
Modifier | Constructor and Description |
---|---|
protected |
DefaultConfig() |
Modifier and Type | Method and Description |
---|---|
Void |
build()
Deprecated.
As of release 1.2, calling build is not required.
|
T |
department(String department)
Sets department to the configuration builder.
|
T |
disableVisitorInfoStorage()
Disables
VisitorInfoPrefsStorage storage. |
T |
initializationTimeout(long milliseconds)
Sets chat initialization timeout.
|
T |
reconnectTimeout(long milliseconds)
Sets the reconnect timeout.
|
T |
sessionTimeout(long milliseconds)
Sets chat session timeout.
|
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 Long initializationTimeout
protected Long reconnectTimeout
protected Long sessionTimeout
protected boolean disableVisitorInfoStorage
protected String department
protected String[] tags
protected String title
protected String referrer
@NonNull public T disableVisitorInfoStorage()
VisitorInfoPrefsStorage
storage.
Configured VisitorInfo
will not be stored for later reuse.@NonNull public T initializationTimeout(long milliseconds)
ChatSession.ACTION_CHAT_INITIALIZATION_TIMEOUT
milliseconds
- after which chat initialization should timeout@NonNull public T reconnectTimeout(long milliseconds)
ZopimChatLogFragment
milliseconds
- after which chat reconnect should timeout@NonNull public T sessionTimeout(long milliseconds)
milliseconds
- after which chat session should timeout@Deprecated public Void build()
@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