io.agora.rtc.RtcConnInfo类 参考

  • Java

更新时间不可用

RtcConnInfo 类。

构造及析构函数说明

RtcConnInfo() [1/2]

io.agora.rtc.RtcConnInfo.RtcConnInfo()

RtcConnInfo() [2/2]

io.agora.rtc.RtcConnInfo.RtcConnInfo(int id, java.lang.String channelId, int state, java.lang.String localUserId, int internalUid)

构造函数。

参数
参数名描述
id

RTC 连接的 ID。

channelId

RTC 频道 ID。

state

连接状态:

  • 1: 网络连接断开。
  • 2: 建立网络连接中。
  • 3: 网络已连接。
  • 4: 重新建立网络连接中。
  • 5: 网络连接失败。
localUserId
internalUid
表格内容超出当前宽度,可横向滚动查看更多列。

成员函数说明

getChannelId()

java.lang.String io.agora.rtc.RtcConnInfo.getChannelId()

getId()

int io.agora.rtc.RtcConnInfo.getId()

getInternalUid()

int io.agora.rtc.RtcConnInfo.getInternalUid()

getLocalUserId()

java.lang.String io.agora.rtc.RtcConnInfo.getLocalUserId()

getState()

int io.agora.rtc.RtcConnInfo.getState()

setChannelId()

void io.agora.rtc.RtcConnInfo.setChannelId(java.lang.String channelId)

setId()

void io.agora.rtc.RtcConnInfo.setId(int id)

setInternalUid()

void io.agora.rtc.RtcConnInfo.setInternalUid(int internalUid)

setLocalUserId()

void io.agora.rtc.RtcConnInfo.setLocalUserId(java.lang.String localUserId)

setState()

void io.agora.rtc.RtcConnInfo.setState(int state)

类成员变量说明

channelId

private
java.lang.String io.agora.rtc.RtcConnInfo.channelId

id

private
int io.agora.rtc.RtcConnInfo.id

internalUid

private
int io.agora.rtc.RtcConnInfo.internalUid

localUserId

private
java.lang.String io.agora.rtc.RtcConnInfo.localUserId

state

private
int io.agora.rtc.RtcConnInfo.state

该类的文档由以下文件生成:

  • RtcConnInfo.java

这个页面有帮助吗?