Skip to content

CallOptions

Adnan Elezović edited this page Feb 7, 2025 · 9 revisions



audio()

Description

Getter for the audio field.

Arguments

  • none

Returns

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

Example

let phoneCallOptionsBuilder = PhoneCallOptions.builder().setAudio(false).build();
let audio = phoneCallOptionsBuilder.audio;



audioOptions()

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

let phoneCallOptionsBuilder = PhoneCallOptions.builder()
    .setAudioOptions(AudioOptions.builder().lowDataMode(true).build())
    .build();
let audioOptions = phoneCallOptionsBuilder.audioOptions;



recordingOptions()

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

let phoneCallOptionsBuilder = PhoneCallOptions.builder()
    .setRecordingOptions(new PhoneCallRecordingOptions('AUDIO'))
    .build();
let recordingOptions = phoneCallOptionsBuilder.recordingOptions;



customData()

Description

Getter for the customData field.

Arguments

  • none

Returns

  • CustomData - Value of the customData field that is defined as an object of key-value string pairs.

Example

let phoneCallOptionsBuilder = PhoneCallOptions.builder().setCustomData({'city': 'New York'}).build();
let customData = phoneCallOptionsBuilder.customData;



autoReconnect()

Description

Getter for the autoReconnect field.

Arguments

  • none

Returns

  • boolean - Value of the autoReconnect field indicating whether reconnect is enabled for this call.

Example

let phoneCallOptionsBuilder = PhoneCallOptions.builder().setAutoReconnect(true).build();
let isReconnectEnabled = phoneCallOptionsBuilder.autoReconnect;

Tutorials

Migration guides

Reference documentation

Clone this wiki locally