-
Notifications
You must be signed in to change notification settings - Fork 2
PhoneCallOptions
Lejla Solak edited this page May 27, 2024
·
6 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
- Value of thefrom
field 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)
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
-true
if 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);
Builds a new instance of the PhoneCallOptions
.
none
-
PhoneCallOptions
- Instance of thePhoneCallOptions
.
PhoneCallOptions.Builder phoneCallOptionsBuilder = PhoneCallOptions.builder();
PhoneCallOptions phoneCallOptions = phoneCallOptionsBuilder.build();