CallControl.RequestVideoState(CallType, IExecutor, IOutcomeReceiver) Método

Definición

Solicite un nuevo estado de vídeo para la llamada en curso.

[Android.Runtime.Register("requestVideoState", "(ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=35)]
public void RequestVideoState(Android.Telecom.CallType videoState, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("requestVideoState", "(ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=35)>]
member this.RequestVideoState : Android.Telecom.CallType * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parámetros

videoState
CallType

para informar a Telecom. Para ver el argumento válido que se va a pasar, consulte CallAttributes.CallType.

executor
IExecutor

en Executor el que se llamará a la OutcomeReceiver devolución de llamada.

callback
IOutcomeReceiver

que se completará en el lado de telecom que detalla el éxito o el error de la operación solicitada.

                          <code data-dev-comment-type="c">OutcomeReceiver#onResult</code> will be called if Telecom has successfully
                          switched the video state.

                          <code data-dev-comment-type="c">OutcomeReceiver#onError</code> will be called if Telecom has failed to set
                          the new video state.  A <code data-dev-comment-type="c">CallException</code> will be passed
                          that details why the operation failed.
Atributos

Comentarios

Solicite un nuevo estado de vídeo para la llamada en curso. Esto solo se puede cambiar si la aplicación ha registrado un PhoneAccount con PhoneAccount#CAPABILITY_SUPPORTS_VIDEO_CALLING y establece el CallAttributes#SUPPORTS_VIDEO_CALLING al agregar la llamada a través de TelecomManager#addCall(CallAttributes, Executor, OutcomeReceiver, CallControlCallback, CallEventCallback)

Java documentación para android.telecom.CallControl.requestVideoState(int, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, android.telecom.CallException>).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a