-
Notifications
You must be signed in to change notification settings - Fork 2
CallOptions
Lejla Solak edited this page Sep 22, 2023
·
5 revisions
boolean isAudio()
AudioOptions getAudioOptions()
RecordingOptions getRecordingOptions()
Map<String, String> getCustomData()
Getter for the audio
field.
none
-
boolean
- Value of theaudio
field indicating whether the call should include local audio.
PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder().audio(false).build();
boolean audio = phoneCallOptions.isAudio();
Getter for the audioOptions
field.
none
-
AudioOptions
- Value of theaudioOptions
field indicating what configuration should be used for the audio.
PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder()
.audioOptions(AudioOptions.builder().lowDataMode(true).build())
.build();
AudioOptions audioOptions = phoneCallOptions.getAudioOptions();
Getter for the recordingOptions
field.
none
-
RecordingOptions
- Value of therecordingOptions
field representing the recording configuration to be used for the call.
PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder()
.recordingOptions(RecordingOptions.builder().recordingType(RecordingType.AUDIO).build())
.build();
RecordingOptions recordingOptions = phoneCallOptions.getRecordingOptions();
Getter for customData
field.
none
-
Map<String, String>
- Value of thecustomData
field representing the additional custom information added to the call options.
CallOptions callOptions = CallOptions.builder().customData(Map.of("username", "Alice")).build();
Map<String, String> customData = callOptions.getCustomData();