public static abstract class RemoteConnection.Callback
extends Object
| java.lang.Object | |
| android.telecom.RemoteConnection.Callback | |
回调基类为 RemoteConnection 。
Public constructors |
|
|---|---|
RemoteConnection.Callback() |
|
公共方法(Public methods) |
|
|---|---|
void |
onAddressChanged(RemoteConnection connection, Uri address, int presentation) 表示此 |
void |
onCallerDisplayNameChanged(RemoteConnection connection, String callerDisplayName, int presentation) 表示此 |
void |
onConferenceChanged(RemoteConnection connection, RemoteConference conference) 指示 |
void |
onConferenceableConnectionsChanged(RemoteConnection connection, List<RemoteConnection> conferenceableConnections) 指示 |
void |
onConnectionCapabilitiesChanged(RemoteConnection connection, int connectionCapabilities) 表示此 |
void |
onDestroyed(RemoteConnection connection) 表示此 |
void |
onDisconnected(RemoteConnection connection, DisconnectCause disconnectCause) 在此 |
void |
onExtrasChanged(RemoteConnection connection, Bundle extras) 处理更改为 |
void |
onPostDialChar(RemoteConnection connection, char nextChar) 当传出 |
void |
onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) 当传出 |
void |
onRingbackRequested(RemoteConnection connection, boolean ringback) 当此 |
void |
onStateChanged(RemoteConnection connection, int state) 在此 |
void |
onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) 表示此 |
void |
onVideoProviderChanged(RemoteConnection connection, RemoteConnection.VideoProvider videoProvider) 指示 |
void |
onVideoStateChanged(RemoteConnection connection, int videoState) 表示此 |
void |
onVoipAudioChanged(RemoteConnection connection, boolean isVoip) 表示此 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
void onAddressChanged (RemoteConnection connection, Uri address, int presentation)
表示此RemoteConnection的地址(例如电话号码)已更改。 见getAddress()和getAddressPresentation() 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
address |
Uri: The new address of the RemoteConnection. |
presentation |
int: The presentation requirements for the address. See TelecomManager for valid values. |
void onCallerDisplayNameChanged (RemoteConnection connection, String callerDisplayName, int presentation)
表示此RemoteConnection的呼叫者显示名称已更改。 见getCallerDisplayName()和getCallerDisplayNamePresentation() 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
callerDisplayName |
String: The new caller display name of the RemoteConnection. |
presentation |
int: The presentation requirements for the handle. See TelecomManager for valid values. |
void onConferenceChanged (RemoteConnection connection, RemoteConference conference)
指示 RemoteConference ,这 RemoteConnection是改变的一部分。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
conference |
RemoteConference: The RemoteConference of which this RemoteConnection is a part, which may be null. |
void onConferenceableConnectionsChanged (RemoteConnection connection, List<RemoteConnection> conferenceableConnections)
指示 RemoteConnection s的此 RemoteConnection可能被要求创建一个会议发生了变化。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
conferenceableConnections |
List: The RemoteConnections with which this RemoteConnection may be asked to create a conference. |
void onConnectionCapabilitiesChanged (RemoteConnection connection, int connectionCapabilities)
表示此RemoteConnection的通话功能已更改。 见getConnectionCapabilities() 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
connectionCapabilities |
int: The new capabilities of the RemoteConnection. |
void onDestroyed (RemoteConnection connection)
表示这RemoteConnection已被销毁。 不应RemoteConnection提出要求,并且应该清除对它的引用。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
void onDisconnected (RemoteConnection connection, DisconnectCause disconnectCause)
在此 RemoteConnection断开连接时调用。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
disconnectCause |
DisconnectCause: The () associated with this failed connection. |
void onExtrasChanged (RemoteConnection connection, Bundle extras)
处理更改为 RemoteConnection临时演员。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
extras |
Bundle: The extras containing other information associated with the connection. |
void onPostDialChar (RemoteConnection connection, char nextChar)
当传出 Connection中的拨号后序列处理 Connection字符时调用。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
nextChar |
char: The character being processed. |
void onPostDialWait (RemoteConnection connection, String remainingPostDialSequence)
当传出Connection中的拨号后序列已达到暂停字符时调用。 这会导致拨号后信号停止等待用户确认。 一个实现应该向用户呈现这个选择,并在用户做出选择时调用postDialContinue(boolean) 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
remainingPostDialSequence |
String: The post-dial characters that remain to be sent. |
void onRingbackRequested (RemoteConnection connection, boolean ringback)
当此RemoteConnection请求回铃时调用。 见isRingbackRequested() 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
ringback |
boolean: Whether the RemoteConnection is requesting ringback. |
void onStateChanged (RemoteConnection connection, int state)
在此RemoteConnection的状态发生变化时调用。 见getState() 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
state |
int: The new state of the RemoteConnection. |
void onStatusHintsChanged (RemoteConnection connection, StatusHints statusHints)
表示此RemoteConnection的状态提示已更改。 见getStatusHints() ()}。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
statusHints |
StatusHints: The new status hints of the RemoteConnection. |
void onVideoProviderChanged (RemoteConnection connection, RemoteConnection.VideoProvider videoProvider)
指示 VideoProvider与此相关 RemoteConnection发生了变化。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
videoProvider |
RemoteConnection.VideoProvider: The new VideoProvider associated with this RemoteConnection. |
void onVideoStateChanged (RemoteConnection connection, int videoState)
表示此RemoteConnection的视频状态已更改。 见getVideoState() 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
videoState |
int: The new video state of the RemoteConnection. |
void onVoipAudioChanged (RemoteConnection connection, boolean isVoip)
表示此RemoteConnection的VOIP音频状态已更改。 见isVoipAudioMode() 。
| 参数(Parameters) | |
|---|---|
connection |
RemoteConnection: The RemoteConnection invoking this method. |
isVoip |
boolean: Whether the new audio state of the RemoteConnection is VOIP. |