-
Notifications
You must be signed in to change notification settings - Fork 0
PhoneCallOptionsBuilder
Lejla Solak edited this page Sep 11, 2023
·
5 revisions
setFrom(from: string): PhoneCallOptionsBuilder
setAudio(audio: boolean): PhoneCallOptionsBuilder
setAudioOptions(audioOptions: AudioOptions): PhoneCallOptionsBuilder
setRecordingOptions(recordingOptions: PhoneCallRecordingOptions): PhoneCallOptionsBuilder
setCustomData(customData: CustomData): PhoneCallOptionsBuilder
build(): PhoneCallOptions
Setter for the from
field.
-
from
:string
- Phone number used when making the call.
-
PhoneCallOptionsBuilder
- Instance of the builder.
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setFrom("33712345678");
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
.
-
PhoneCallOptionsBuilder
- Instance of the builder.
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setAudio(false);
Setter for the audioOptions
field.
-
audioOptions
:AudioOptions
- Configuration used for the audio in the call.
-
PhoneCallOptionsBuilder
- Instance of the builder.
let audioOptions = AudioOptions.builder().lowDataMode(true).build();
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setAudioOptions(audioOptions);
Setter for the recordingOptions
field.
-
recordingOptions
:PhoneCallRecordingOptions
- Recording configuration to be used for the call.
-
PhoneCallOptionsBuilder
- Instance of the builder.
let recordingOptions = new PhoneCallRecordingOptions("AUDIO");
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.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 phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setCustomData({"city": "New York"});
Builds a new instance of the PhoneCallOptions
.
none
-
PhoneCallOptions
- Instance of thePhoneCallOptions
.
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
let phoneCallOptions = phoneCallOptionsBuilder.build();