-
Notifications
You must be signed in to change notification settings - Fork 2
CallOptions
Lejla Solak edited this page Feb 10, 2025
·
6 revisions
boolean isAudio()AudioOptions getAudioOptions()RecordingOptions getRecordingOptions()Map<String, String> getCustomData()boolean isAutoReconnect()
Getter for the audio field.
none
-
boolean- The value of theaudiofield 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- The value of theaudioOptionsfield 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- The value of therecordingOptionsfield 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 the customData field.
none
-
Map<String, String>- The value of thecustomDatafield representing the additional custom information added to the call options.
PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder()
.customData(Map.of("username", "Alice"))
.build();
Map<String, String> customData = phoneCallOptions.getCustomData();Getter for the autoReconnect field.
none
-
boolean- The value of theautoReconnectfield indicating whether the call should automatically reconnect.
PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder()
.autoReconnect(true)
.build();
boolean autoReconnectEnabled = phoneCallOptions.isAutoReconnect();