-
Notifications
You must be signed in to change notification settings - Fork 3
ApplicationCallOptions
Adnan Mujagić edited this page Aug 5, 2024
·
5 revisions
init(audio: Bool = true, audioOptions: AudioOptions = AudioOptions(), video: Bool = false, videoOptions: VideoOptions = VideoOptions(), customData: CustomData = [:], dataChannel: Bool = false)
audio: Bool
audioOptions: AudioOptions
video: Bool
videoOptions: VideoOptions
customData: CustomData
dataChannel: Bool
platformOptions: PlatformOptions
Creates an instance of ApplicationCallOptions
.
-
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. -
video
:Bool
- Flag indicating whether the local video should be enabled for the call. Disabled by default. -
videoOptions
:VideoOptions
- Optional video configuration to be used when making a call. -
customData
:CustomData
- Optional object containing custom additional information. Empty by default. This object will be forwarded to the backend application. -
dataChannel
:Bool
- Flag indicating whether the data channel should be created for the call. Disabled by default. -
platformOptions
:PlatformOptions
- Optional configuration of the application and entity that the call should be associated with.
-
ApplicationCallOptions
- Instance of theApplicationCallOptions
.
let customData = ["userId": "bgxy-as45-ddf3"]
let applicationCallOptions = ApplicationCallOptions(audio: true, video: true, videoOptions: VideoOptions(CameraOrientation.back), customData: customData)
Getter for the audio
field.
none
-
Bool
- Value of theaudio
field indicating whether the call should include local audio.
let audio = ApplicationCallOptions().audio
Getter for the audioOptions
field.
none
-
AudioOptions
- Value of theaudioOptions
field containing audio configuration.
let audioOptions = ApplicationCallOptions().audioOptions
Getter for the video
field.
none
-
Bool
- Value of thevideo
field indicating whether the call should include local video.
let video = ApplicationCallOptions().video
Getter for the videoOptions
field.
none
-
VideoOptions
- Value of thevideoOptions
field containing video configuration.
let videoOptions = ApplicationCallOptions().videoOptions
Getter for the customData
field.
none
-
CustomData
- Value of thecustomData
field containing custom additional information.
let customData = ApplicationCallOptions().customData
Getter for the dataChannel
field.
none
-
Bool
- Value of thedataChannel
field indicating whether the data channel should be created for a call.
let dataChannel = ApplicationCallOptions().dataChannel
Getter for the platformOptions
field.
none
-
PlatformOptions
- Value of theplatformOptions
field. For more details, see documentation.
let platformOptions = ApplicationCallOptions().platformOptions