-
Notifications
You must be signed in to change notification settings - Fork 3
CallOptions
Adnan Mujagić edited this page Jun 11, 2024
·
4 revisions
init(audio: Bool = false, audioOptions: AudioOptions = AudioOptions(), recordingOptions: RecordingOptions = RecordingOptions(), customData: CustomData = [:])
audio: Bool
audioOptions: AudioOptions
recordingOptions: RecordingOptions
customData: CustomData
Creates an instance of CallOptions
.
-
audio
:Bool
- Flag indicating whether the local audio should be enabled for the call. Enabled by default. -
audioOptions
:AudioOptions
- Optional audio configuration to be used when making a call. -
recordingOptions
:RecordingOptions
- Optional recording configuration to be used when making a call. -
customData
:CustomData
- Optional object containing custom additional information. Empty by default.
-
CallOptions
- Instance of theCallOptions
.
let customData = ["userId": "bgxy-as45-ddf3"]
let callOptions = CallOptions(audio: false, customData: customData)
Getter for the audio
field.
none
-
Bool
- Value of theaudio
field indicating whether the call should include local audio.
let audio = CallOptions().audio
Getter for the audioOptions
field.
none
-
AudioOptions
- Value of theaudioOptions
field containing audio configuration.
let audioOptions = CallOptions().audioOptions
Getter for the recordingOptions
field.
none
-
RecordingOptions
- Value of therecordingOptions
field containing recording configuration.
let recordingOptions = CallOptions().recordingOptions
Getter for the customData
field.
none
-
CustomData
- Value of thecustomData
field containing custom additional information.
let customData = CallOptions().customData