Skip to navigation

CallUpgradeDecision (interface)

Android SDK v3 API reference
View as Markdown

com.voximplant.android.sdk.calls

Interface that processes a call upgrade request received in 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 is triggered. The upgrade request is then automatically rejected.

Nested types

Interfaces

Enumerations

Methods

acceptReceiveAndSend

fun acceptReceiveAndSend(localVideoStream: LocalVideoStream, callback: 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 may be triggered and Call.localVideoStream becomes available.

Parameters

ParameterTypeRequirementDescription
localVideoStreamLocalVideoStreamLocal video stream to be sent to the remote participant
callbackCallback?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 may be triggered.

Returns: Unit

reject

fun reject(): Unit

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

Returns: Unit