public static class ZopimChatApi.DefaultConfig<T extends ZopimChatApi.DefaultConfig>
extends java.lang.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 FormConstructor and Description |
---|
DefaultConfig() |
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
build()
Deprecated.
As of release 1.2, calling build is not required.
|
T |
department(java.lang.String department)
Sets department to the configuration builder.
|
ZopimChatApi.DefaultConfig |
disableVisitorInfoStorage()
Disables
VisitorInfoPrefsStorage storage. |
ZopimChatApi.DefaultConfig |
initializationTimeout(long milliseconds)
Sets chat initialization timeout.
|
ZopimChatApi.DefaultConfig |
reconnectTimeout(long milliseconds)
Sets the reconnect timeout.
|
ZopimChatApi.DefaultConfig |
sessionTimeout(long milliseconds)
Sets chat session timeout.
|
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.
|
@NonNull public ZopimChatApi.DefaultConfig disableVisitorInfoStorage()
VisitorInfoPrefsStorage
storage.
Configured VisitorInfo
will not be stored for later reuse.@NonNull public ZopimChatApi.DefaultConfig initializationTimeout(long milliseconds)
ChatSession.ACTION_CHAT_INITIALIZATION_TIMEOUT
milliseconds
- after which chat initialization should timeout@NonNull public ZopimChatApi.DefaultConfig reconnectTimeout(long milliseconds)
milliseconds
- after which chat reconnect should timeout@NonNull public ZopimChatApi.DefaultConfig sessionTimeout(long milliseconds)
milliseconds
- after which chat session should timeout@Deprecated public java.lang.Void build()
@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