-
Notifications
You must be signed in to change notification settings - Fork 0
CallOptions
Adnan Arnautović edited this page Jan 26, 2023
·
1 revision
init(video: Bool = false, _ videoOptions: VideoOptions = VideoOptions(), recordingOptions: RecordingOptions = RecordingOptions(), _ customData: [String: Any] = [:])
video: Bool
videoOptions: VideoOptions
recordingOptions: RecordingOptions
customData: [String: Any]
Creates an instance of CallOptions
.
-
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. -
recordingOptions
:RecordingOptions
- Optional recording configuration to be used when making a call. -
customData
:[String: Any]
- Optional object containing custom additional information. Empty by default. This object will be forwarded to the other peer in the incoming call event.
-
CallOptions
- Instance of theCallOptions
.
let customData = ["userId": "bgxy-as45-ddf3"]
let callOptions = CallOptions(video: true, VideoOptions(CameraOrientation.back), recordingOptions: RecordingOptions(true), customData)
Getter for the video
field.
none
-
Bool
- Value of thevideo
field indicating whether the call should include local video.
let video = CallOptions().video
Getter for the videoOptions
field.
none
-
VideoOptions
- Value of thevideoOptions
field containing video configuration.
let videoOptions = CalllOptions().videoOptions
Getter for the recordingOptions
field.
none
-
RecordingOptions
- Value of therecordingOptions
field containing recording configuration.
let recordingOptions = CallOptions().recordingOptions
Getter for the customData
field.
none
-
[String: Any]
- Value of thecustomData
field containing custom additional information.
let customData = CallOptions().customData
- Prerequisites
- Events
- InfobipRTC
- Call
- IncomingCall
- OutgoingCall
- CallRequest
- CallConversationsRequest
- CallOptions
- VideoOptions
- VideoTrack
- RecordingOptions
- CameraOrientation
- CallPhoneNumberOptions
- CallStatus
- CallError
- DTMFError
- ErrorCode
- RTCUser
- CallDelegate
- CallRingingEvent
- CallEstablishedEvent
- CallUpdatedEvent
- CallHangupEvent
- CallErrorEvent
- InfobipSimulator
- Conference
- ConferenceDelegate
- ConferenceRequest
- ConferenceStatus
- ConferenceError
- ConferenceUser
- NetworkQuality
- NetworkQualityChangedEvent
- NetworkQualityDelegate