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

# CallUpgradeDecision (interface)

[com.voximplant.android.sdk.calls](/api-reference/androidsdk3/android/sdk/calls/overview)

Interface that processes a call upgrade request received in [CallListener.onCallUpgradeRequested](/api-reference/androidsdk3/android/sdk/calls/calllistener#oncallupgraderequested).

The application should use the provided instance exactly once by calling one of its methods.

If no decision is made before the timeout, [CallListener.onCallUpgradeRequestTimeout](/api-reference/androidsdk3/android/sdk/calls/calllistener#oncallupgraderequesttimeout) is triggered. The upgrade request is then automatically rejected.

## Nested types

### Interfaces

* [Callback](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision/callback)

### Enumerations

* [Error](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision/error)

**Methods**

* [acceptReceiveAndSend](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision#acceptreceiveandsend)
* [acceptReceiveOnly](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision#acceptreceiveonly)
* [reject](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision#reject)

## Methods

### acceptReceiveAndSend

`fun acceptReceiveAndSend(localVideoStream: `[`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream)`, callback: `[`Callback`](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision/callback)`?): Unit`

Accepts the incoming video from the remote participant and starts sending the local video stream.

The callback parameter reports the result of starting local video capture and renegotiation.

After the decision is applied successfully, [CallListener.onRemoteVideoStreamAdded](/api-reference/androidsdk3/android/sdk/calls/calllistener#onremotevideostreamadded) may be triggered and [Call.localVideoStream](/api-reference/androidsdk3/android/sdk/calls/call#localvideostream) becomes available.

**Parameters**

| Parameter          | Type                                                                                       | Requirement | Description                                                                                                                            |
| ------------------ | ------------------------------------------------------------------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `localVideoStream` | [`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream)        |             | Local video stream to be sent to the remote participant                                                                                |
| `callback`         | [`Callback`](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision/callback)`?` |             | [Callback](/api-reference/androidsdk3/android/sdk/calls/callupgradedecision/callback) to receive the result of this operation, or null |

**Returns:** Unit

### acceptReceiveOnly

`fun acceptReceiveOnly(): Unit`

Accepts video receiving from the remote participant.

After the decision is applied successfully, [CallListener.onRemoteVideoStreamAdded](/api-reference/androidsdk3/android/sdk/calls/calllistener#onremotevideostreamadded) may be triggered.

**Returns:** Unit

### reject

`fun reject(): Unit`

Rejects the call upgrade request and keeps the call audio-only.

**Returns:** Unit