Skip to content

PhoneCallOptionsBuilder

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



setFrom(from)

Description

Setter for the from field.

Arguments

  • from: string - Phone number used when making the call.

Returns

Example

let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setFrom("33712345678");



setAudio(audio)

Description

Setter for the audio field.

Arguments

  • audio: boolean -true if the local audio should be enabled. Enabled by default. Note, access to the microphone will still be requested even if audio is false.

Returns

Example

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



setAudioOptions(audioOptions)

Description

Setter for the audioOptions field.

Arguments

  • audioOptions: AudioOptions - Configuration used for the audio in the call.

Returns

Example

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



setRecordingOptions(recordingOptions)

Description

Setter for the recordingOptions field.

Arguments

Returns

Example

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



setCustomData(customData)

Description

Setter for the customData field.

Arguments

  • customData: CustomData - Object containing custom additional information related to the outgoing call. Empty by default.

Returns

Example

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



build()

Description

Builds a new instance of the PhoneCallOptions.

Arguments

  • none

Returns

Example

let phoneCallOptionsBuilder = PhoneCallOptions.builder();
let phoneCallOptions = phoneCallOptionsBuilder.build();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally