-
Notifications
You must be signed in to change notification settings - Fork 2
PhoneCallOptions
Lejla Solak edited this page Feb 10, 2025
·
7 revisions
extends CallOptions
Creates a builder instance used to build a new instance of PhoneCallOptions.
none
-
PhoneCallOptions.Builder- Instance of the builder.
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder();Getter for the from field.
none
-
String- The value of thefromfield indicating what phone number should be used when making the call.
PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder().setFrom("33712345678").build();
String from = phoneCallOptions.getFrom();Builder from(String from)Builder audio(boolean audio)Builder audioOptions(AudioOptions audioOptions)Builder recordingOptions(RecordingOptions recordingOptions)Builder customData(Map<String, String> customData)Builder autoReconnect(boolean autoReconnect)PhoneCallOptions build()
Setter for the from field.
-
from:String- Phone number used when making the call.
-
PhoneCallOptions.Builder- Instance of the builder.
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder().from("33712345678");Setter for the audio field.
-
audio:boolean-trueif the local audio should be enabled. Enabled by default.
-
PhoneCallOptions.Builder- Instance of the builder.
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder().audio(false);Setter for the audioOptions field.
-
audioOptions:AudioOptions- Configuration used for the audio in the call.
-
PhoneCallOptions.Builder- Instance of the builder.
AudioOptions audioOptions = AudioOptions.builder().lowDataMode(true).build();
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder().audioOptions(audioOptions);Setter for the recordingOptions field.
-
recordingOptions:RecordingOptions- Recording configuration to be used for the call.
-
PhoneCallOptions.Builder- Instance of the builder.
RecordingOptions recordingOptions = RecordingOptions.Builder.recordingType(RecordingType.AUDIO).build();
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder().recordingOptions(recordingOptions);Setter for the customData field.
-
customData:Map<String, String>- Object containing custom additional information related to the outgoing call. Empty by default.
-
PhoneCallOptions.Builder- Instance of the builder.
Map<String, String> customData = Map.of("username", "Alice");
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder().customData(customData);Setter for the autoReconnect field.
-
autoReconnect:boolean-trueif the automatic call reconnect should be enabled. Disabled by default.
-
phoneCallOptionsBuilder.Builder- Instance of the builder.
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder().autoReconnect(true);Builds a new instance of the PhoneCallOptions.
none
-
PhoneCallOptions- Instance of thePhoneCallOptions.
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder();
PhoneCallOptions phoneCallOptions = phoneCallOptionsBuilder.build();