-
public final class ChatClientConfigA config to setup the ChatClient behavior.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisAnonymousprivate final StringapiKeyprivate StringhttpUrlprivate StringcdnHttpUrlprivate StringwssUrlprivate final BooleanwarmUpprivate final ChatLogger.ConfigloggerConfigprivate BooleandistinctApiCalls
-
Constructor Summary
Constructors Constructor Description ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLogger.Config loggerConfig, Boolean distinctApiCalls)ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLogger.Config loggerConfig)
-
Method Summary
Modifier and Type Method Description final BooleangetIsAnonymous()final UnitsetIsAnonymous(Boolean isAnonymous)final StringgetApiKey()final StringgetHttpUrl()final UnitsetHttpUrl(String httpUrl)final StringgetCdnHttpUrl()final UnitsetCdnHttpUrl(String cdnHttpUrl)final StringgetWssUrl()final UnitsetWssUrl(String wssUrl)final BooleangetWarmUp()final ChatLogger.ConfiggetLoggerConfig()final BooleangetDistinctApiCalls()final UnitsetDistinctApiCalls(Boolean distinctApiCalls)-
-
Constructor Detail
-
ChatClientConfig
ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLogger.Config loggerConfig, Boolean distinctApiCalls)
- Parameters:
apiKey- The API key of your Stream Chat app obtained from the Stream Dashboard.httpUrl- The base URL to be used by the client.cdnHttpUrl- The base CDN URL to be used by the client.wssUrl- The base WebSocket URL to be used by the client.warmUp- Controls the connection warm-up behavior.loggerConfig- A logging config to be used by the client.distinctApiCalls- Controls whether DistinctChatApi is enabled or not.
-
ChatClientConfig
ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLogger.Config loggerConfig)
- Parameters:
apiKey- The API key of your Stream Chat app obtained from the Stream Dashboard.httpUrl- The base URL to be used by the client.cdnHttpUrl- The base CDN URL to be used by the client.wssUrl- The base WebSocket URL to be used by the client.warmUp- Controls the connection warm-up behavior.loggerConfig- A logging config to be used by the client.
-
-
Method Detail
-
getIsAnonymous
final Boolean getIsAnonymous()
-
setIsAnonymous
final Unit setIsAnonymous(Boolean isAnonymous)
-
getHttpUrl
final String getHttpUrl()
-
setHttpUrl
final Unit setHttpUrl(String httpUrl)
- Parameters:
httpUrl- The base URL to be used by the client.
-
getCdnHttpUrl
final String getCdnHttpUrl()
-
setCdnHttpUrl
final Unit setCdnHttpUrl(String cdnHttpUrl)
- Parameters:
cdnHttpUrl- The base CDN URL to be used by the client.
-
setWssUrl
final Unit setWssUrl(String wssUrl)
- Parameters:
wssUrl- The base WebSocket URL to be used by the client.
-
getLoggerConfig
final ChatLogger.Config getLoggerConfig()
-
getDistinctApiCalls
final Boolean getDistinctApiCalls()
-
setDistinctApiCalls
final Unit setDistinctApiCalls(Boolean distinctApiCalls)
- Parameters:
distinctApiCalls- Controls whether DistinctChatApi is enabled or not.
-
-
-
-