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 |
|
---|---|
From class 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 RemoteConnection s 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. |