public static class AcceptOptions.Builder extends CallOptions.Builder
Constructor and Description |
---|
Builder()
Use this Builder when accepting a
CallInvite |
Modifier and Type | Method and Description |
---|---|
AcceptOptions |
build()
Builds
AcceptOptions object. |
AcceptOptions.Builder |
enableInsights(boolean enable)
Specify reporting statistics to Insights.
|
AcceptOptions.Builder |
iceOptions(IceOptions iceOptions)
Custom ICE configuration used to connect to a Call.
|
AcceptOptions.Builder |
preferAudioCodecs(List<AudioCodec> preferredAudioCodecs)
Set preferred audio codecs.
|
AcceptOptions.Builder |
region(String region)
Sets the region (Twilio data center) for the SDK.
|
public Builder()
CallInvite
public AcceptOptions.Builder iceOptions(IceOptions iceOptions)
public AcceptOptions.Builder enableInsights(boolean enable)
public AcceptOptions.Builder preferAudioCodecs(List<AudioCodec> preferredAudioCodecs)
The following snippet demonstrates how to prefer a single audio codec.
AcceptOptions acceptOptions = new AcceptOptions.Builder(token)
.preferAudioCodecs(Collections.singletonList(new PcmuCodec()))
.build();
The following snippet demonstrates how to specify the exact order of codec preferences.
AcceptOptions acceptOptions = new AcceptOptions.Builder(token)
.preferAudioCodecs(Arrays.asList(new PcmuCodec(), new OpusCodec()))
.build();
public AcceptOptions.Builder region(String region)
NOTE: Setting the region during a call will not apply until all ongoing calls have ended and a subsequent call is placed.
region
- The region.public AcceptOptions build()
AcceptOptions
object.4.0.0