Skip to content

ViberCallOptionsBuilder

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



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 viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.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 viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.setAudioOptions(audioOptions);



setRecordingOptions(recordingOptions)

Description

Setter for the recordingOptions field.

Arguments

Returns

Example

let recordingOptions = new ViberCallRecordingOptions("AUDIO");
let viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.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 viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.setCustomData({"city": "New York"});



build()

Description

Builds a new instance of the ViberCallOptions.

Arguments

  • none

Returns

Example

let viberCallOptionsBuilder = ViberCallOptions.builder();
let viberCallOptions = viberCallOptionsBuilder.build();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally