-
Notifications
You must be signed in to change notification settings - Fork 2
ApplicationCallOptions
Eldar Babić edited this page Feb 10, 2025
·
6 revisions
init(audio: Bool = true, audioOptions: AudioOptions = AudioOptions(), video: Bool = false, videoOptions: VideoOptions = VideoOptions(), customData: CustomData = [:], dataChannel: Bool = false, platformOptions: PlatformOptions? = nil, autoReconnect: Bool = false)audio: BoolaudioOptions: AudioOptionsvideo: BoolvideoOptions: VideoOptionscustomData: CustomDatadataChannel: BoolplatformOptions: PlatformOptionsautoReconnect: Bool
init(audio, audioOptions, video, videoOptions, customData, dataChannel, platformOptions, autoReconnect)
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. -
autoReconnect:Bool- Optional flag indicating whether reconnect should be enabled for the call. Disabled by default.
-
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 theaudiofield indicating whether the call should include local audio.
let audio = ApplicationCallOptions().audioGetter for the audioOptions field.
none
-
AudioOptions- Value of theaudioOptionsfield containing audio configuration.
let audioOptions = ApplicationCallOptions().audioOptionsGetter for the video field.
none
-
Bool- Value of thevideofield indicating whether the call should include local video.
let video = ApplicationCallOptions().videoGetter for the videoOptions field.
none
-
VideoOptions- Value of thevideoOptionsfield containing video configuration.
let videoOptions = ApplicationCallOptions().videoOptionsGetter for the customData field.
none
-
CustomData- Value of thecustomDatafield containing custom additional information.
let customData = ApplicationCallOptions().customDataGetter for the dataChannel field.
none
-
Bool- Value of thedataChannelfield indicating whether the data channel should be created for a call.
let dataChannel = ApplicationCallOptions().dataChannelGetter for the platformOptions field.
none
-
PlatformOptions- Value of theplatformOptionsfield. For more details, see documentation.
let platformOptions = ApplicationCallOptions().platformOptionsGetter for the autoReconnect field.
none
-
Bool- Value of theautoReconnectfield indicating whether the call should automatically reconnect.
let autoReconnect = ApplicationCallOptions().autoReconnect