Package com.zopim.android.sdk.api
Class ZopimChat.DefaultConfig
- java.lang.Object
-
- com.zopim.android.sdk.api.ZopimChatApi.DefaultConfig<ZopimChat.DefaultConfig>
-
- com.zopim.android.sdk.api.ZopimChat.DefaultConfig
-
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- ZopimChat
public static class ZopimChat.DefaultConfig extends ZopimChatApi.DefaultConfig<ZopimChat.DefaultConfig>
Configuration class for global chat configurationConfiguration specified here will be applicable to all chat sessions that get started. This configuration can be overridden by a
ZopimChat.SessionConfigconfiguration provided when starting a new chat.- See Also:
ZopimChat.SessionConfig, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Tdepartment(java.lang.String department)Sets department to the configuration builder.ZopimChat.DefaultConfigdisableVisitorInfoStorage()DisablesVisitorInfoPrefsStoragestorage.ZopimChat.DefaultConfigemailTranscript(EmailTranscript emailTranscript)ZopimChat.DefaultConfigfileSending(boolean enabled)ZopimChat.DefaultConfiginitializationTimeout(long milliseconds)Sets chat initialization timeout.ZopimChat.DefaultConfigpreChatForm(PreChatForm preChatForm)ZopimChat.DefaultConfigreconnectTimeout(long milliseconds)Sets the reconnect timeout.ZopimChat.DefaultConfigsessionTimeout(long milliseconds)Sets chat session timeout.Ttags(java.lang.String... tags)Sets tags to the configuration builder.TvisitorPathOne(java.lang.String visitorPath)Sets visitor path as additional info visible in the Zopim chat dashboard.TvisitorPathTwo(java.lang.String visitorPath)Sets visitor path as additional info visible in the Zopim chat dashboard.-
Methods inherited from class com.zopim.android.sdk.api.ZopimChatApi.DefaultConfig
build
-
-
-
-
Method Detail
-
preChatForm
public ZopimChat.DefaultConfig preChatForm(PreChatForm preChatForm)
-
emailTranscript
public ZopimChat.DefaultConfig emailTranscript(EmailTranscript emailTranscript)
-
fileSending
public ZopimChat.DefaultConfig fileSending(boolean enabled)
-
disableVisitorInfoStorage
public ZopimChat.DefaultConfig disableVisitorInfoStorage()
Description copied from class:ZopimChatApi.DefaultConfigDisablesVisitorInfoPrefsStoragestorage. ConfiguredVisitorInfowill not be stored for later reuse.- Overrides:
disableVisitorInfoStoragein classZopimChatApi.DefaultConfig<ZopimChat.DefaultConfig>- Returns:
- configuration builder
-
initializationTimeout
public ZopimChat.DefaultConfig initializationTimeout(long milliseconds)
Description copied from class:ZopimChatApi.DefaultConfigSets chat initialization timeout. If chat fails to initialize in this time it will broadcast an intent with actionChatSession.ACTION_CHAT_INITIALIZATION_TIMEOUT- Overrides:
initializationTimeoutin classZopimChatApi.DefaultConfig<ZopimChat.DefaultConfig>- Parameters:
milliseconds- after which chat initialization should timeout- Returns:
- configuration builder
-
reconnectTimeout
public ZopimChat.DefaultConfig reconnectTimeout(long milliseconds)
Description copied from class:ZopimChatApi.DefaultConfigSets the reconnect timeout. This configures the connection retry timeout used in the UI- Overrides:
reconnectTimeoutin classZopimChatApi.DefaultConfig<ZopimChat.DefaultConfig>- Parameters:
milliseconds- after which chat reconnect should timeout- Returns:
- configuration builder
-
sessionTimeout
public ZopimChat.DefaultConfig sessionTimeout(long milliseconds)
Description copied from class:ZopimChatApi.DefaultConfigSets chat session timeout. This configures the time after which the chat will timeout and disconnect if no further visitor message has been sent.- Overrides:
sessionTimeoutin classZopimChatApi.DefaultConfig<ZopimChat.DefaultConfig>- Parameters:
milliseconds- after which chat session should timeout- Returns:
- configuration builder
-
department
public T department(java.lang.String department)
Sets department to the configuration builder. Department will be visible in the Zopim chat dashboard.- Parameters:
department- name- Returns:
- configuration builder
-
tags
public T tags(java.lang.String... tags)
Sets tags to the configuration builder. Tags will be visible in the Zopim chat dashboard.- Parameters:
tags- for the chat- Returns:
- configuration builder
-
visitorPathOne
public T visitorPathOne(java.lang.String visitorPath)
Sets visitor path as additional info visible in the Zopim chat dashboard.Additional information configured in the dashboard used to help identify the origin of the chat.
- Parameters:
visitorPath- as extra info visible on the dashboard- Returns:
- configuration builder
-
visitorPathTwo
public T visitorPathTwo(java.lang.String visitorPath)
Sets visitor path as additional info visible in the Zopim chat dashboard.Additional information configured in the dashboard used to help identify the origin of the chat.
- Parameters:
visitorPath- as extra info visible on the dashboard- Returns:
- configuration builder
-
-