Skip to content

CallOptions

Lejla Solak edited this page Feb 10, 2025 · 6 revisions



isAudio()

Description

Getter for the audio field.

Arguments

  • none

Returns

  • boolean - The 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 - The 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 - The 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 the customData field.

Arguments

  • none

Returns

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

Example

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



isAutoReconnect()

Description

Getter for the autoReconnect field.

Arguments

  • none

Returns

  • boolean - The value of the autoReconnect field indicating whether the call should automatically reconnect.

Example

PhoneCallOptions phoneCallOptions = PhoneCallOptions.builder()
        .autoReconnect(true)
        .build();
boolean autoReconnectEnabled = phoneCallOptions.isAutoReconnect();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally