语言

Connection.RequestCallEndpointChange 方法

定义

请求到特定 CallEndpoint 的音频路由。

[Android.Runtime.Register("requestCallEndpointChange", "(Landroid/telecom/CallEndpoint;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void RequestCallEndpointChange(Android.Telecom.CallEndpoint endpoint, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("requestCallEndpointChange", "(Landroid/telecom/CallEndpoint;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.RequestCallEndpointChange : Android.Telecom.CallEndpoint * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

参数

endpoint
CallEndpoint

要使用的调用终结点。

executor
IExecutor

将执行回调的执行程序。

callback
IOutcomeReceiver

用于通知终结点更改结果的回调。

特性

注解

请求到特定 CallEndpoint 的音频路由。 客户端在请求更改时不应定义自己的 CallEndpoint。 相反,新终结点应该是由 #onAvailableCallEndpointsChanged(List)它提供的有效终结点之一。 收到此请求后,将更改此 #getCurrentCallEndpoint()请求。

供自管理使用,希望更改自托管ConnectionServiceConnection的 CallEndpoint(请参阅 PhoneAccount#CAPABILITY_SELF_MANAGED.)

另请参阅 InCallService#requestCallEndpointChange(CallEndpoint, Executor, OutcomeReceiver)。

Java文档android.telecom.Connection.requestCallEndpointChange(android.telecom.CallEndpoint, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, android.telecom.CallEndpointException>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于