语言

CallControl.SetGroupCallState(Boolean, IExecutor, IOutcomeReceiver) 方法

定义

设置正在进行的呼叫的组调用状态。

[Android.Runtime.Register("setGroupCallState", "(ZLjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)]
public void SetGroupCallState(bool isGroupCall, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("setGroupCallState", "(ZLjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)>]
member this.SetGroupCallState : bool * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

参数

isGroupCall
Boolean

如果呼叫当前为组呼叫, 则为

executor
IExecutor

Executor调用回调的OutcomeReceiver依据。

callback
IOutcomeReceiver

将在电信端完成,详细说明所请求操作的成功或失败。

                           <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.
特性

注解

设置正在进行的呼叫的组调用状态。

此方法应由 VoIP 应用程序调用。 当呼叫转换到组呼叫或从组呼叫转换时。 例如,如果一对一呼叫添加更多参与者并成为会议,此方法将通知系统该更改。

提供此状态可让 Android 系统正确表示系统用户界面中的调用,例如本机调用日志。 作为集成呼叫日志功能的一部分,该功能为运营商和 VoIP 呼叫提供统一历史记录,准确识别组呼叫对于一致的用户体验至关重要。

Android 参考。android.telecom.CallControl.setGroupCallState

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于