Chat Android SDK  5.1.1
com.twilio.chat.ChatClient.Properties Class Reference

Properties for client initialization configuration. More...

Classes

class  Builder
 Builder class for client properties. More...
 

Public Member Functions

String getRegion ()
 Twilio server region to connect to. More...
 
int getCommandTimeout ()
 

Static Public Attributes

static final int MIN_COMMAND_TIMEOUT = 10000
 Minimum valid command timeout value that could be passed into Builder#setCommandTimeout. More...
 
static final int DEFAULT_COMMAND_TIMEOUT = 90000
 Default command timeout value that could be passed into Builder#setCommandTimeout. More...
 

Detailed Description

Properties for client initialization configuration.

Member Function Documentation

int com.twilio.chat.ChatClient.Properties.getCommandTimeout ( )
Returns
Timeout in milliseconds for commands which SDK sends over network (i.e. Messages#sendMessage, Channel#join etc). StatusListener#onError will be called when timeout is reached.

In case of bad connectivity SDK retries to send command until timeout is reached. Timeout could occur earlier than specified time if there is no enough time to make one more attempt.

The default value is DEFAULT_COMMAND_TIMEOUT.

String com.twilio.chat.ChatClient.Properties.getRegion ( )

Twilio server region to connect to.

Instances exist in specific regions, so this should only be changed if needed.

Returns
Region such as us1 or ie1.

Member Data Documentation

final int com.twilio.chat.ChatClient.Properties.DEFAULT_COMMAND_TIMEOUT = 90000
static

Default command timeout value that could be passed into Builder#setCommandTimeout.

final int com.twilio.chat.ChatClient.Properties.MIN_COMMAND_TIMEOUT = 10000
static

Minimum valid command timeout value that could be passed into Builder#setCommandTimeout.