public static abstract class Call.Callback
extends Object
| java.lang.Object | |
| android.telecom.Call.Callback | |
Public constructors |
|
|---|---|
Call.Callback() |
|
公共方法(Public methods) |
|
|---|---|
void |
onCallDestroyed(Call call) 在 |
void |
onCannedTextResponsesLoaded(Call call, List<String> cannedTextResponses) 在从相关数据库加载可用作对传入 |
void |
onChildrenChanged(Call call, List<Call> children) 当此 |
void |
onConferenceableCallsChanged(Call call, List<Call> conferenceableCalls) 在对可与 |
void |
onDetailsChanged(Call call, Call.Details details) 当此 |
void |
onParentChanged(Call call, Call parent) 当此 |
void |
onPostDialWait(Call call, String remainingPostDialSequence) 在传出 |
void |
onStateChanged(Call call, int state) 在此 |
void |
onVideoCallChanged(Call call, InCallService.VideoCall videoCall) 当 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
void onCallDestroyed (Call call)
当Call被销毁时调用。 为了响应状态转换,客户应该避免为Call清理其UI。 具体而言,客户不应该认为onStateChanged(Call, int)状态为STATE_DISCONNECTED是Call将发送的最终通知。 相反,客户端应该等待这个方法被调用。
| 参数(Parameters) | |
|---|---|
call |
Call: The Call being destroyed. |
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. |
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. |
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. |
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. |
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. |
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. |
void onStateChanged (Call call, int state)
在此Call的状态发生变化时调用。 见getState() 。
| 参数(Parameters) | |
|---|---|
call |
Call: The Call invoking this method. |
state |
int: The new state of the Call. |
void onVideoCallChanged (Call call, InCallService.VideoCall videoCall)
在 Call.VideoCall的 Call发生变化时调用。
| 参数(Parameters) | |
|---|---|
call |
Call: The Call invoking this method. |
videoCall |
InCallService.VideoCall: The Call.VideoCall associated with the Call. |