Chat Android SDK
7.0.1
|
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... | |
boolean | isUseProxy () |
If useProxy flag is true ChatClient will try to read and apply proxy settings in the following order: 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... | |
Properties for client initialization configuration.
int com.twilio.chat.ChatClient.Properties.getCommandTimeout | ( | ) |
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.
us1
or ie1
. boolean com.twilio.chat.ChatClient.Properties.isUseProxy | ( | ) |
If useProxy flag is true
ChatClient will try to read and apply proxy settings in the following order:
If this flag is false
all proxy settings will be ignored and direct connection will be used.
The default value is false
.
In current version connection via proxy server is not supported for media. So media uploading and downloading always uses direct connection.
Example of the proxysettings.properties file
|
static |
Default command timeout value that could be passed into Builder#setCommandTimeout.
|
static |
Minimum valid command timeout value that could be passed into Builder#setCommandTimeout.