Most visited

Recently visited

Added in API level 23

Call.Callback

public static abstract class Call.Callback
extends Object

java.lang.Object
   ↳ android.telecom.Call.Callback


Summary

Public constructors

Call.Callback()

Public methods

void onCallDestroyed(Call call)

Call被销毁时调用。

void onCannedTextResponsesLoaded(Call call, List<String> cannedTextResponses)

在从相关数据库加载可用作对传入 Call响应的文本消息时调用。

void onChildrenChanged(Call call, List<Call> children)

当此 Call的孩子发生变化时调用。

void onConferenceableCallsChanged(Call call, List<Call> conferenceableCalls)

在对可与 Call进行会议的一组 Call更改时调用。

void onDetailsChanged(Call call, Call.Details details)

当此 Call的细节发生变化时调用。

void onParentChanged(Call call, Call parent)

当此 Call的父 Call发生更改时调用。

void onPostDialWait(Call call, String remainingPostDialSequence)

在传出 Call中的拨号后序列已达到暂停字符时调用。

void onStateChanged(Call call, int state)

在此 Call的状态发生变化时调用。

void onVideoCallChanged(Call call, InCallService.VideoCall videoCall)

Call.VideoCallCall发生变化时调用。

Inherited methods

From class java.lang.Object

Public constructors

Call.Callback

Added in API level 23
Call.Callback ()

Public methods

onCallDestroyed

Added in API level 23
void onCallDestroyed (Call call)

Call被销毁时调用。 为了响应状态转换,客户应该避免为Call清理其UI。 具体而言,客户不应该认为onStateChanged(Call, int)状态为STATE_DISCONNECTEDCall将发送的最终通知。 相反,客户端应该等待这个方法被调用。

Parameters
call Call: The Call being destroyed.

onCannedTextResponsesLoaded

Added in API level 23
void onCannedTextResponsesLoaded (Call call, 
                List<String> cannedTextResponses)

在从相关数据库加载可用作对传入Call响应的文本消息时调用。 getCannedTextResponses()

Parameters
call Call: The Call invoking this method.
cannedTextResponses List: The text messages useable as responses.

onChildrenChanged

Added in API level 23
void onChildrenChanged (Call call, 
                List<Call> children)

当此Call的孩子发生了变化时调用。 getChildren()

Parameters
call Call: The Call invoking this method.
children List: The new children of the Call.

onConferenceableCallsChanged

Added in API level 23
void onConferenceableCallsChanged (Call call, 
                List<Call> conferenceableCalls)

在对可与 Call进行会议的一组 Call更改时调用。

Parameters
call Call: The Call being updated.
conferenceableCalls List: The Calls with which this Call can be conferenced.

onDetailsChanged

Added in API level 23
void onDetailsChanged (Call call, 
                Call.Details details)

当此Call的详细信息发生更改时调用。 getDetails()

Parameters
call Call: The Call invoking this method.
details Call.Details: A Details object describing the Call.

onParentChanged

Added in API level 23
void onParentChanged (Call call, 
                Call parent)

当此Call的父Call发生更改时调用。 getParent()

Parameters
call Call: The Call invoking this method.
parent Call: The new parent of the Call.

onPostDialWait

Added in API level 23
void onPostDialWait (Call call, 
                String remainingPostDialSequence)

当即将离任的Call中的拨号后序列已达到暂停字符时调用。 这会导致拨号后信号停止等待用户确认。 一个实现应该向用户提供这个选择,并在用户做出选择时调用postDialContinue(boolean)

Parameters
call Call: The Call invoking this method.
remainingPostDialSequence String: The post-dial characters that remain to be sent.

onStateChanged

Added in API level 23
void onStateChanged (Call call, 
                int state)

在此Call的状态发生变化时调用。 getState()

Parameters
call Call: The Call invoking this method.
state int: The new state of the Call.

onVideoCallChanged

Added in API level 23
void onVideoCallChanged (Call call, 
                InCallService.VideoCall videoCall)

Call.VideoCallCall发生变化时调用。

Parameters
call Call: The Call invoking this method.
videoCall InCallService.VideoCall: The Call.VideoCall associated with the Call.

Hooray!