-
Notifications
You must be signed in to change notification settings - Fork 0
ViberCallOptionsBuilder
Lejla Solak edited this page Sep 11, 2023
·
5 revisions
setAudio(audio: boolean): ViberCallOptionsBuilder
setAudioOptions(audioOptions: AudioOptions): ViberCallOptionsBuilder
setRecordingOptions(recordingOptions: ViberCallRecordingOptions): ViberCallOptionsBuilder
setCustomData(customData: CustomData): ViberCallOptionsBuilder
build(): WebrtcCallOptions
Setter for the audio
field.
-
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 isfalse
.
-
ViberCallOptionsBuilder
- Instance of the builder.
let viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.setAudio(false);
Setter for the audioOptions
field.
-
audioOptions
:AudioOptions
- Configuration used for the audio in the call.
-
ViberCallOptionsBuilder
- Instance of the builder.
let audioOptions = AudioOptions.builder().lowDataMode(true).build();
let viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.setAudioOptions(audioOptions);
Setter for the recordingOptions
field.
-
recordingOptions
:ViberCallRecordingOptions
- Recording configuration to be used for the call.
-
ViberCallOptionsBuilder
- Instance of the builder.
let recordingOptions = new ViberCallRecordingOptions("AUDIO");
let viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.setRecordingOptions(recordingOptions);
Setter for the customData
field.
-
customData
:CustomData
- Object containing custom additional information related to the outgoing call. Empty by default.
-
RoomCallOptionsBuilder
- Instance of the builder.
let viberCallOptionsBuilder = ViberCallOptions.builder();
viberCallOptionsBuilder.setCustomData({"city": "New York"});
Builds a new instance of the ViberCallOptions
.
none
-
ViberCallOptions
- Instance of theViberCallOptions
.
let viberCallOptionsBuilder = ViberCallOptions.builder();
let viberCallOptions = viberCallOptionsBuilder.build();