Most visited

Recently visited

Added in API level 23

RemoteConnection.Callback

public static abstract class RemoteConnection.Callback
extends Object

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


回调基类为 RemoteConnection

Summary

Public constructors

RemoteConnection.Callback()

Public methods

void onAddressChanged(RemoteConnection connection, Uri address, int presentation)

表示此 RemoteConnection的地址(例如电话号码)已更改。

void onCallerDisplayNameChanged(RemoteConnection connection, String callerDisplayName, int presentation)

表示此 RemoteConnection的呼叫者显示名称已更改。

void onConferenceChanged(RemoteConnection connection, RemoteConference conference)

指示 RemoteConference ,这 RemoteConnection是改变的一部分。

void onConferenceableConnectionsChanged(RemoteConnection connection, List<RemoteConnection> conferenceableConnections)

指示 RemoteConnection s的此 RemoteConnection可能被要求创建一个会议发生了变化。

void onConnectionCapabilitiesChanged(RemoteConnection connection, int connectionCapabilities)

表示此 RemoteConnection的通话功能已更改。

void onDestroyed(RemoteConnection connection)

表示此 RemoteConnection已被销毁。

void onDisconnected(RemoteConnection connection, DisconnectCause disconnectCause)

在此 RemoteConnection断开连接时调用。

void onExtrasChanged(RemoteConnection connection, Bundle extras)

处理更改为 RemoteConnection演员。

void onPostDialChar(RemoteConnection connection, char nextChar)

当传出 Connection中的拨号后序列处理 Connection字符时调用。

void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence)

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

void onRingbackRequested(RemoteConnection connection, boolean ringback)

当此 RemoteConnection请求回铃时调用。

void onStateChanged(RemoteConnection connection, int state)

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

void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints)

表示此 RemoteConnection的状态提示已更改。

void onVideoProviderChanged(RemoteConnection connection, RemoteConnection.VideoProvider videoProvider)

指示 VideoProvider与此相关 RemoteConnection发生了变化。

void onVideoStateChanged(RemoteConnection connection, int videoState)

表示此 RemoteConnection的视频状态已更改。

void onVoipAudioChanged(RemoteConnection connection, boolean isVoip)

表示此 RemoteConnection的VOIP音频状态已更改。

Inherited methods

From class java.lang.Object

Public constructors

RemoteConnection.Callback

Added in API level 23
RemoteConnection.Callback ()

Public methods

onAddressChanged

Added in API level 23
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.

onCallerDisplayNameChanged

Added in API level 23
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.

onConferenceChanged

Added in API level 23
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.

onConferenceableConnectionsChanged

Added in API level 23
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.

onConnectionCapabilitiesChanged

Added in API level 23
void onConnectionCapabilitiesChanged (RemoteConnection connection, 
                int connectionCapabilities)

表示此RemoteConnection的通话功能已更改。 getConnectionCapabilities()

Parameters
connection RemoteConnection: The RemoteConnection invoking this method.
connectionCapabilities int: The new capabilities of the RemoteConnection.

onDestroyed

Added in API level 23
void onDestroyed (RemoteConnection connection)

表示这RemoteConnection已被销毁。 不应RemoteConnection提出要求,并且应该清除对它的引用。

Parameters
connection RemoteConnection: The RemoteConnection invoking this method.

onDisconnected

Added in API level 23
void onDisconnected (RemoteConnection connection, 
                DisconnectCause disconnectCause)

在此 RemoteConnection断开连接时调用。

Parameters
connection RemoteConnection: The RemoteConnection invoking this method.
disconnectCause DisconnectCause: The () associated with this failed connection.

onExtrasChanged

Added in API level 23
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.

onPostDialChar

Added in API level 23
void onPostDialChar (RemoteConnection connection, 
                char nextChar)

当传出 Connection中的拨号后序列处理 Connection字符时调用。

Parameters
connection RemoteConnection: The RemoteConnection invoking this method.
nextChar char: The character being processed.

onPostDialWait

Added in API level 23
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.

onRingbackRequested

Added in API level 23
void onRingbackRequested (RemoteConnection connection, 
                boolean ringback)

当此RemoteConnection请求回铃时调用。 isRingbackRequested()

Parameters
connection RemoteConnection: The RemoteConnection invoking this method.
ringback boolean: Whether the RemoteConnection is requesting ringback.

onStateChanged

Added in API level 23
void onStateChanged (RemoteConnection connection, 
                int state)

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

Parameters
connection RemoteConnection: The RemoteConnection invoking this method.
state int: The new state of the RemoteConnection.

onStatusHintsChanged

Added in API level 23
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.

onVideoProviderChanged

Added in API level 23
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.

onVideoStateChanged

Added in API level 23
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.

onVoipAudioChanged

Added in API level 23
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.

Hooray!