Skip to content

CallOptions

Lejla Solak edited this page Sep 22, 2023 · 5 revisions



isAudio()

Description

Getter for the audio field.

Arguments

  • none

Returns

  • boolean - Value of the audio field indicating whether the call should include local audio.

Example

PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder().audio(false).build();
boolean audio = phoneCallOptions.isAudio();



getAudioOptions()

Description

Getter for the audioOptions field.

Arguments

  • none

Returns

  • AudioOptions - Value of the audioOptions field indicating what configuration should be used for the audio.

Example

PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder()
        .audioOptions(AudioOptions.builder().lowDataMode(true).build())
        .build();
AudioOptions audioOptions = phoneCallOptions.getAudioOptions();



getRecordingOptions()

Description

Getter for the recordingOptions field.

Arguments

  • none

Returns

  • RecordingOptions - Value of the recordingOptions field representing the recording configuration to be used for the call.

Example

PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder()
        .recordingOptions(RecordingOptions.builder().recordingType(RecordingType.AUDIO).build())
        .build();
RecordingOptions recordingOptions = phoneCallOptions.getRecordingOptions();



getCustomData()

Description

Getter for customData field.

Arguments

  • none

Returns

  • Map<String, String> - Value of the customData field representing the additional custom information added to the call options.

Example

CallOptions callOptions = CallOptions.builder().customData(Map.of("username", "Alice")).build();
Map<String, String> customData = callOptions.getCustomData();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally