-
public final class ChatClient.Builder
-
-
Constructor Summary
Constructors Constructor Description ChatClient.Builder(String apiKey, Context appContext)
-
Method Summary
Modifier and Type Method Description final ChatClient.BuilderlogLevel(ChatLogLevel level)final ChatClient.BuilderlogLevel(String level)final ChatClient.BuilderloggerHandler(ChatLoggerHandler loggerHandler)final ChatClient.Buildernotifications(ChatNotificationHandler notificationsHandler)final ChatClient.BuilderfileUploader(FileUploader fileUploader)final ChatClient.BuilderuseNewSerialization(Boolean enabled)A new serialization implementation is now used by default by the SDK. final ChatClient.BuilderbaseTimeout(Long timeout)final ChatClient.BuildercdnTimeout(Long timeout)final ChatClient.BuilderdisableWarmUp()final ChatClient.BuilderbaseUrl(String value)final ChatClient.BuildercdnUrl(String value)final ChatClient.BuildercallbackExecutor(Executor callbackExecutor)final ChatClientbuild()-
-
Method Detail
-
logLevel
final ChatClient.Builder logLevel(ChatLogLevel level)
-
logLevel
final ChatClient.Builder logLevel(String level)
-
loggerHandler
final ChatClient.Builder loggerHandler(ChatLoggerHandler loggerHandler)
-
notifications
final ChatClient.Builder notifications(ChatNotificationHandler notificationsHandler)
-
fileUploader
final ChatClient.Builder fileUploader(FileUploader fileUploader)
-
useNewSerialization
final ChatClient.Builder useNewSerialization(Boolean enabled)
A new serialization implementation is now used by default by the SDK.
If you experience any issues with the new implementation, call this builder method with
falseas the parameter to revert to the old implementation. Note that the old implementation will be removed soon.To check for issues caused by new serialization, enable error logs using the logLevel method and look for the NEW_SERIALIZATION_ERROR tag in your logs.
-
baseTimeout
final ChatClient.Builder baseTimeout(Long timeout)
-
cdnTimeout
final ChatClient.Builder cdnTimeout(Long timeout)
-
disableWarmUp
final ChatClient.Builder disableWarmUp()
-
baseUrl
final ChatClient.Builder baseUrl(String value)
-
cdnUrl
final ChatClient.Builder cdnUrl(String value)
-
callbackExecutor
final ChatClient.Builder callbackExecutor(Executor callbackExecutor)
-
build
final ChatClient build()
-
-
-
-