-
Notifications
You must be signed in to change notification settings - Fork 0
PhoneCallOptionsBuilder
Adnan Mujagić edited this page Aug 14, 2023
·
5 revisions
setFrom(from: string): PhoneCallOptionsBuilder
setAudio(audio: boolean): PhoneCallOptionsBuilder
setAudioOptions(audioOptions: AudioOptions): PhoneCallOptionsBuilder
setCustomData(customData: CustomData): PhoneCallOptionsBuilder
build(): WebrtcCallOptions
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().setAudioFilter(audioFilterObject).build()
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setAudioOptions(audioOptions);
Setter for the customData
field.
-
customData
:CustomData
- Object containing custom additional information. Empty by default.
-
PhoneCallOptionsBuilder
- 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();