Package com.zopim.android.sdk.api
Class ZopimChatApi.DefaultConfig<T extends ZopimChatApi.DefaultConfig>
- java.lang.Object
-
- com.zopim.android.sdk.api.ZopimChatApi.DefaultConfig<T>
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ZopimChat.DefaultConfig
- Enclosing class:
- ZopimChatApi
public static class ZopimChatApi.DefaultConfig<T extends ZopimChatApi.DefaultConfig> extends java.lang.ObjectConfiguration class for global chat configurationConfiguration specified here will be applicable to all chat sessions that get started. This configuration can be overridden by a
ZopimChatApi.SessionConfigconfiguration provided when starting a new chat.- See Also:
ZopimChatApi.SessionConfig, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected java.lang.Stringdepartmentprotected booleandisableVisitorInfoStorageprotected java.lang.LonginitializationTimeoutprotected java.lang.LongreconnectTimeoutprotected java.lang.Stringreferrerprotected java.lang.LongsessionTimeoutprotected java.lang.String[]tagsprotected java.lang.Stringtitle
-
Constructor Summary
Constructors Modifier Constructor and Description protectedDefaultConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.Voidbuild()Deprecated.As of release 1.2, calling build is not required.Tdepartment(java.lang.String department)Sets department to the configuration builder.TdisableVisitorInfoStorage()DisablesVisitorInfoPrefsStoragestorage.TinitializationTimeout(long milliseconds)Sets chat initialization timeout.TreconnectTimeout(long milliseconds)Sets the reconnect timeout.TsessionTimeout(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.
-
-
-
Field Detail
-
initializationTimeout
protected java.lang.Long initializationTimeout
-
reconnectTimeout
protected java.lang.Long reconnectTimeout
-
sessionTimeout
protected java.lang.Long sessionTimeout
-
disableVisitorInfoStorage
protected boolean disableVisitorInfoStorage
-
department
protected java.lang.String department
-
tags
protected java.lang.String[] tags
-
title
protected java.lang.String title
-
referrer
protected java.lang.String referrer
-
-
Method Detail
-
disableVisitorInfoStorage
public T disableVisitorInfoStorage()
DisablesVisitorInfoPrefsStoragestorage. ConfiguredVisitorInfowill not be stored for later reuse.- Returns:
- configuration builder
-
initializationTimeout
public T initializationTimeout(long milliseconds)
Sets chat initialization timeout. If chat fails to initialize in this time it will broadcast an intent with actionChatSession.ACTION_CHAT_INITIALIZATION_TIMEOUT- Parameters:
milliseconds- after which chat initialization should timeout- Returns:
- configuration builder
-
reconnectTimeout
public T reconnectTimeout(long milliseconds)
Sets the reconnect timeout. This configures the connection retry timeout used in the UI- Parameters:
milliseconds- after which chat reconnect should timeout- Returns:
- configuration builder
-
sessionTimeout
public T sessionTimeout(long milliseconds)
Sets chat session timeout. This configures the time after which the chat will timeout and disconnect if no further visitor message has been sent.- Parameters:
milliseconds- after which chat session should timeout- Returns:
- configuration builder
-
build
@Deprecated public java.lang.Void build()
Deprecated. As of release 1.2, calling build is not required.Saves the global chat configuration that will be available to all chat sessions.
-
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
-
-