> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VICallUpgradeDecision

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()](/api-reference/iossdk/calls/vicallupgradedecision#symbol-e42376a92ceee6af), [acceptAndSend(localVideoStream:completion:)](/api-reference/iossdk/calls/vicallupgradedecision#symbol-1745cea1f091cc96), or [reject()](/api-reference/iossdk/calls/vicallupgradedecision#symbol-8d46a7f1018f543d), and pass it to the callback provided by [callUpgradeHandler](/api-reference/iossdk/calls/vicall#symbol-116c25a32daa1d14).

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](/api-reference/iossdk/calls/vilocalvideostream),\
    completion: @escaping ([VICallUpgradeDecisionError](/api-reference/iossdk/calls/vicallupgradedecisionerror)?) -> Void\
)

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

**Parameters**

**localVideoStream** [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)

Local video stream to send to the remote participant.

**completion** @escaping ([VICallUpgradeDecisionError](/api-reference/iossdk/calls/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](/api-reference/iossdk/calls/vicallupgradedecisionerror) object if the operation has failed; otherwise nil is passed.

> **Note**
>
> 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