Skip to navigation

VICallUpgradeDecision

VoximplantCalls · iOS SDK v3

View as Markdown

Represents a decision for handling a call upgrade request from audio to video.

@objc class VICallUpgradeDecision

Create an instance, configure it by calling one of accept(), acceptAndSend(localVideoStream:completion:), or reject(), and pass it to the callback provided by callUpgradeHandler.

Each instance can be configured only once. After a decision method is called, calling another decision method on the same instance has no effect.

Properties

description

override var description: String { get }

Methods

accept()

@objc func accept()

Accepts the call upgrade and begins receiving the remote video.

acceptAndSend(localVideoStream:completion:)

@objc func acceptAndSend(
    localVideoStream: VILocalVideoStream,
    completion: @escaping (VICallUpgradeDecisionError?) -> Void
)

Accepts the call upgrade and begins both receiving the remote video and sending the provided local video stream.

Parameters

localVideoStream VILocalVideoStream

Local video stream to send to the remote participant.

completion @escaping (VICallUpgradeDecisionError?) -> Void

Completion handler to call when the call upgrade is complete. This handler is executed on the delegate queue. The SDK passes a VICallUpgradeDecisionError object if the operation has failed; otherwise nil is passed.

If sending video fails, for example due to missing camera permission, the SDK enables receiving the remote video and reports the error via the completion handler.

isEqual(_:)

override func isEqual(_ object: Any?) -> Bool

reject()

@objc func reject()

Rejects the call upgrade request. The call remains audio-only.

Relationships

Inherits From: NSObject

Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable