Most visited

Recently visited

Added in API level 23

Conference

public abstract class Conference
extends Conferenceable

java.lang.Object
    android.telecom.Conferenceable
      android.telecom.Conference


代表可以包含任意数量的 Connection对象的电话会议。

摘要(Summary)

常量(Constants)

long CONNECT_TIME_NOT_SPECIFIED

用于指示未指定会议连接时间。

Public constructors

Conference(PhoneAccountHandle phoneAccount)

构建一个强制性的新会议 PhoneAccountHandle

公共方法(Public methods)

final boolean addConnection(Connection connection)

添加指定的连接作为此会议的子节点。

final void destroy()

击倒会议对象及其当前连接。

final CallAudioState getCallAudioState()
final List<Connection> getConferenceableConnections()

返回可与此连接进行会议的连接。

final int getConnectionCapabilities()

返回会议的功能。

final long getConnectionTime()

如果指定,则检索 Conference的连接开始时间。

final List<Connection> getConnections()

返回当前与电话会议相关联的连接列表。

final DisconnectCause getDisconnectCause()
final Bundle getExtras()

返回与此会议相关的额外信息。

final PhoneAccountHandle getPhoneAccountHandle()

返回电话会议正在通过的 PhoneAccountHandle

final int getState()

获取电话会议的状态。

final StatusHints getStatusHints()
Connection.VideoProvider getVideoProvider()

返回主要通话的VideoProvider。

int getVideoState()

返回主要通话的视频状态。

void onCallAudioStateChanged(CallAudioState state)

通知此会议 getCallAudioState()属性具有新值。

void onConnectionAdded(Connection connection)

通知此会议已添加连接。

void onDisconnect()

在会议和所有 Connection应该断开连接时调用。

void onHold()

当会议暂停时调用。

void onMerge(Connection connection)

当指定的 Connection应与电话会议合并时调用。

void onMerge()

应该合并孩子呼叫时调用。

void onPlayDtmfTone(char c)

通知此会议播放DTMF音的请求。

void onSeparate(Connection connection)

当指定的 Connection应与电话会议分开时调用。

void onStopDtmfTone()

通知此会议请求停止任何正在播放的DTMF音。

void onSwap()

应该调用孩子呼叫时调用。

void onUnhold()

当会议从保持状态变为活动状态时调用。

final void removeConnection(Connection connection)

删除指定的连接作为此会议的子节点。

final void setActive()

将状态设置为活动状态。

final void setConferenceableConnections(List<Connection> conferenceableConnections)

设置可与此连接进行会议的连接。

final void setConnectionCapabilities(int connectionCapabilities)

设置会议的功能。

final void setConnectionTime(long connectionTimeMillis)

设置 Conference的连接开始时间。

final void setDialing()

将状态设置为拨号。

final void setDisconnected(DisconnectCause disconnectCause)

将状态设置为断开。

final void setExtras(Bundle extras)

替换与此 Conference相关的所有额外 Conference

final void setOnHold()

将状态设置为暂停状态。

final void setStatusHints(StatusHints statusHints)

设置要在InCall UI中显示的标签和图标状态。

final void setVideoProvider(Connection c, Connection.VideoProvider videoProvider)

设置视频连接提供商。

final void setVideoState(Connection c, int videoState)

设置会议的视频状态。

String toString()

返回对象的字符串表示形式。

继承方法(Inherited methods)

From class java.lang.Object

常量(Constants)

CONNECT_TIME_NOT_SPECIFIED

Added in API level 23
long CONNECT_TIME_NOT_SPECIFIED

用于指示未指定会议连接时间。 如果没有指定,电信将设置连接时间。

常量值:0(0x0000000000000000)

Public constructors

Conference

Added in API level 23
Conference (PhoneAccountHandle phoneAccount)

构建一个强制性的新会议 PhoneAccountHandle

参数(Parameters)
phoneAccount PhoneAccountHandle: The PhoneAccountHandle associated with the conference.

公共方法(Public methods)

addConnection

Added in API level 23
boolean addConnection (Connection connection)

添加指定的连接作为此会议的子节点。

参数(Parameters)
connection Connection: The connection to add.
返回(Returns)
boolean True if the connection was successfully added.

destroy

Added in API level 23
void destroy ()

击倒会议对象及其当前连接。

getCallAudioState

Added in API level 23
CallAudioState getCallAudioState ()

返回(Returns)
CallAudioState The audio state of the conference, describing how its audio is currently being routed by the system. This is null if this Conference does not directly know about its audio state.

getConferenceableConnections

Added in API level 23
List<Connection> getConferenceableConnections ()

返回可与此连接进行会议的连接。

返回(Returns)
List<Connection>

getConnectionCapabilities

Added in API level 23
int getConnectionCapabilities ()

返回会议的功能。 CAPABILITY_*类常量Connection有效值。

返回(Returns)
int A bitmask of the capabilities of the conference call.

getConnectionTime

Added in API level 23
long getConnectionTime ()

如果指定,则检索Conference的连接开始时间。 值为CONNECT_TIME_NOT_SPECIFIED表示电信应确定会议的开始时间。

返回(Returns)
long The time at which the Conference was connected.

getConnections

Added in API level 23
List<Connection> getConnections ()

返回当前与电话会议相关联的连接列表。

返回(Returns)
List<Connection> A list of Connection objects which represent the children of the conference.

getDisconnectCause

Added in API level 23
DisconnectCause getDisconnectCause ()

返回(Returns)
DisconnectCause The DisconnectCause for this connection.

getExtras

Added in API level 23
Bundle getExtras ()

返回与此会议相关的额外信息。

返回(Returns)
Bundle The extras associated with this connection.

getPhoneAccountHandle

Added in API level 23
PhoneAccountHandle getPhoneAccountHandle ()

返回 PhoneAccountHandle电话会议的 PhoneAccountHandle

返回(Returns)
PhoneAccountHandle A PhoneAccountHandle object representing the PhoneAccount of the conference.

getState

Added in API level 23
int getState ()

获取电话会议的状态。 有效值请参见Connection

返回(Returns)
int A constant representing the state the conference call is currently in.

getStatusHints

Added in API level 23
StatusHints getStatusHints ()

返回(Returns)
StatusHints The status hints for this conference.

getVideoProvider

Added in API level 23
Connection.VideoProvider getVideoProvider ()

返回主要通话的VideoProvider。 这可以为null。

返回(Returns)
Connection.VideoProvider

getVideoState

Added in API level 23
int getVideoState ()

返回主要通话的视频状态。

返回(Returns)
int

onCallAudioStateChanged

Added in API level 23
void onCallAudioStateChanged (CallAudioState state)

通知此会议 getCallAudioState()属性具有新值。

参数(Parameters)
state CallAudioState: The new call audio state.

onConnectionAdded

Added in API level 23
void onConnectionAdded (Connection connection)

通知此会议已添加连接。

参数(Parameters)
connection Connection: The newly added connection.

onDisconnect

Added in API level 23
void onDisconnect ()

在会议和所有 Connection应该断开连接时调用。

onHold

Added in API level 23
void onHold ()

当会议暂停时调用。

onMerge

Added in API level 23
void onMerge (Connection connection)

当指定的 Connection应与电话会议合并时调用。

参数(Parameters)
connection Connection: The Connection to merge.

onMerge

Added in API level 23
void onMerge ()

应该合并孩子呼叫时调用。 仅在会议包含能力CAPABILITY_MERGE_CONFERENCE时才被调用。

onPlayDtmfTone

Added in API level 23
void onPlayDtmfTone (char c)

通知此会议播放DTMF音的请求。

参数(Parameters)
c char: A DTMF character.

onSeparate

Added in API level 23
void onSeparate (Connection connection)

当指定的 Connection应与电话会议分开时调用。

参数(Parameters)
connection Connection: The connection to separate.

onStopDtmfTone

Added in API level 23
void onStopDtmfTone ()

通知此会议请求停止任何正在播放的DTMF音。

onSwap

Added in API level 23
void onSwap ()

应该调用孩子呼叫时调用。 仅在会议包含能力CAPABILITY_SWAP_CONFERENCE时才被调用。

onUnhold

Added in API level 23
void onUnhold ()

当会议从保持状态变为活动状态时调用。

removeConnection

Added in API level 23
void removeConnection (Connection connection)

删除指定的连接作为此会议的子节点。

参数(Parameters)
connection Connection: The connection to remove.

setActive

Added in API level 23
void setActive ()

将状态设置为活动状态。

setConferenceableConnections

Added in API level 23
void setConferenceableConnections (List<Connection> conferenceableConnections)

设置可与此连接进行会议的连接。

参数(Parameters)
conferenceableConnections List: The set of connections this connection can conference with.

setConnectionCapabilities

Added in API level 23
void setConnectionCapabilities (int connectionCapabilities)

设置会议的功能。 CAPABILITY_*常量类Connection有效值。

参数(Parameters)
connectionCapabilities int: A bitmask of the Capabilities of the conference call.

setConnectionTime

Added in API level 23
void setConnectionTime (long connectionTimeMillis)

设置 Conference的连接开始时间。

参数(Parameters)
connectionTimeMillis long: The connection time, in milliseconds.

setDialing

Added in API level 23
void setDialing ()

将状态设置为拨号。

setDisconnected

Added in API level 23
void setDisconnected (DisconnectCause disconnectCause)

将状态设置为断开。

参数(Parameters)
disconnectCause DisconnectCause: The reason for the disconnection, as described by DisconnectCause.

setExtras

Added in API level 23
void setExtras (Bundle extras)

替换与此 Conference相关的所有额外 Conference

新的或现有的密钥在Conference演员中被替换。 密钥,其在新的演员不再,但出席的最后一次setExtras被称为被删除。

关于In-Call UI或服务如何处理这些额外内容,不应该做出任何假设。 密钥应完全限定(例如,com.example.MY_EXTRA)以避免冲突。

参数(Parameters)
extras Bundle: The extras associated with this Conference.

setOnHold

Added in API level 23
void setOnHold ()

将状态设置为暂停状态。

setStatusHints

Added in API level 23
void setStatusHints (StatusHints statusHints)

设置要在InCall UI中显示的标签和图标状态。

参数(Parameters)
statusHints StatusHints: The status label and icon to set.

setVideoProvider

Added in API level 23
void setVideoProvider (Connection c, 
                Connection.VideoProvider videoProvider)

设置视频连接提供商。

参数(Parameters)
c Connection
videoProvider Connection.VideoProvider: The video provider.

setVideoState

Added in API level 23
void setVideoState (Connection c, 
                int videoState)

设置会议的视频状态。 有效值: STATE_AUDIO_ONLYSTATE_BIDIRECTIONALSTATE_TX_ENABLEDSTATE_RX_ENABLED

参数(Parameters)
c Connection
videoState int: The new video state.

toString

Added in API level 23
String toString ()

返回对象的字符串表示形式。 一般来说, toString方法会返回一个“文本表示”该对象的字符串。 结果应该是一个简洁但内容丰富的表述,对于一个人来说很容易阅读。 建议所有子类重写此方法。

ObjecttoString方法返回一个字符串,其中包含对象为实例的类的名称,符号字符“ @ ”以及对象的哈希代码的无符号十六进制表示形式。 换句话说,这个方法返回一个字符串,其值等于:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

返回(Returns)
String a string representation of the object.

Hooray!