public static class ConnectOptions.Builder extends CallOptions.Builder
ConnectOptions
.
All methods are optional.
Constructor and Description |
---|
Builder(String accessToken)
Use this Builder when making a
Call |
Modifier and Type | Method and Description |
---|---|
ConnectOptions |
build()
Builds
ConnectOptions object. |
ConnectOptions.Builder |
iceOptions(IceOptions iceOptions)
Custom ICE configuration used to connect to a Call.
|
ConnectOptions.Builder |
params(Map<String,String> params)
Set the parameters that are passed to the TwiML application specified by the access token.
|
ConnectOptions.Builder |
region(String region)
Sets the region (Twilio data center) for the SDK.
|
public ConnectOptions.Builder params(Map<String,String> params)
Parameters specified in this map will be provided as HTTP GET query params or as part of the HTTP POST body to the request url specified in your TwiML Application (https://www.twilio.com/console/voice/twiml/apps). These parameters can be used to configure the behavior of your call within the context of your TwiML Application.
public ConnectOptions.Builder iceOptions(IceOptions iceOptions)
public ConnectOptions.Builder region(String region)
region
- The region.public ConnectOptions build()
ConnectOptions
object.3.0.0-preview4