Builder

interface Builder

Builder class for client properties

Functions

createProperties
Link copied to clipboard
abstract fun createProperties(): ConversationsClient.Properties
Create Properties object from this Builder.
setCommandTimeout
Link copied to clipboard
abstract fun setCommandTimeout(commandTimeout: Int): ConversationsClient.Properties.Builder
Set timeout for commands which SDK sends over network (i.e.
setDeferCertificateTrustToPlatform
Link copied to clipboard
Defer certificate trust decisions to Android OS, overriding the default of certificate pinning for Twilio back-end connections.
setRegion
Link copied to clipboard
abstract fun setRegion(region: String): ConversationsClient.Properties.Builder
Select Twilio server region to connect to.
setUseProxy
Link copied to clipboard
abstract fun setUseProxy(useProxy: Boolean): ConversationsClient.Properties.Builder
If useProxy flag is `true` ConversationsClient will try to read and apply proxy settings in the following order:
  1. If there is no proxysettings.properties file in the assets folder of your app then android system proxy settings will be applied.
  2. If the proxysettings.properties file exists in the assets folder of your app then proxy configuration will be read from it and android system settings will be ignored.
  3. If proxy settings cannot be read either from the proxysettings.properties file and from android system settings ConversationsClient will use direct connection.
If this flag is `false` all proxy settings will be ignored and direct connection will be used.