共用方式為


CallControl.Answer(CallType, IExecutor, IOutcomeReceiver) 方法

定義

要求電信接聽來電。

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

參數

videoState
CallType

表示向電信報告。 電信會在另一個服務/裝置要求時儲存VideoState,以便繼續在另一個畫面上呼叫。

executor
IExecutor

Executor將呼叫回呼的 OutcomeReceiver

callback
IOutcomeReceiver

將會在電信端完成,詳細說明所要求作業的成功或失敗。

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

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

備註

要求電信接聽來電。 針對已保留的撥出通話和通話,請使用 CallControl#setActive(Executor, OutcomeReceiver)

android.telecom.CallControl.answer(int, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, android.telecom.CallException>)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於