Skip to content

CallOptions

Ajša Terko edited this page Feb 15, 2024 · 8 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;

Tutorials

Migration guides

Reference documentation

Clone this wiki locally