-
Notifications
You must be signed in to change notification settings - Fork 2
PhoneCallOptionsBuilder
Adnan Elezović edited this page Feb 7, 2025
·
6 revisions
setFrom(from: string): PhoneCallOptionsBuildersetAudio(audio: boolean): PhoneCallOptionsBuildersetAudioOptions(audioOptions: AudioOptions): PhoneCallOptionsBuildersetRecordingOptions(recordingOptions: PhoneCallRecordingOptions): PhoneCallOptionsBuildersetCustomData(customData: CustomData): PhoneCallOptionsBuildersetAutoReconnect(autoReconnect: boolean): PhoneCallOptionsBuilderbuild(): 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-trueif 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.
-
PhoneCallOptionsBuilder- Instance of the builder.
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setCustomData({"city": "New York"});Setter for the autoReconnect field.
-
autoReconnect:boolean-trueif the call should reconnect in case of connection loss. Disabled by default.
-
PhoneCallOptionsBuilder- Instance of the builder.
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
phoneCallOptionsBuilder.setAutoReconnect(true);Builds a new instance of the PhoneCallOptions.
none
-
PhoneCallOptions- Instance of thePhoneCallOptions.
let phoneCallOptionsBuilder = PhoneCallOptions.builder();
let phoneCallOptions = phoneCallOptionsBuilder.build();