| java.lang.Object | ||
| ↳ | com.nexmo.sdk.conversation.client.ConversationClient.ConversationClientConfig | |
| ↳ | com.nexmo.sdk.conversation.client.ConversationClient.ConversationClientBuilder | |
API for creating ConversationClient instances.
Acquire a ConversationClient, based on the following mandatory params:
Example usage:
// Create a ConversationClient using the ConversationClientBuilder.
ConversationClient myConversationClient = new ConversationClient.ConversationClientBuilder()
.context(myAppContext)
.build();
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.nexmo.sdk.conversation.client.ConversationClient.ConversationClientConfig
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ConversationClientBuilder() | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.nexmo.sdk.conversation.client.ConversationClient.ConversationClientConfig
| |||||||||||
From class
java.lang.Object
| |||||||||||
Set automatic reconnect policy.
By default if the connection gets lost, SDK is automatically reconnecting exponentially.
Build a ConversationClient, based on the following mandatory params:
ConversationClient.| ConversationClientException | A ConversationClientException if any of the mandatory params are not supplied.
|
|---|
When new session is being created pending operations from previous app start will be flushed on login process
| flushPending | true if pending operations have to be flushed. Default is false |
|---|
User can specify thread on which callback will be fired
| useMainThread | if true main application thread will be used |
|---|