RtcConnection
Contains connection information.
public class RtcConnection { public enum CONNECTION_STATE_TYPE { CONNECTION_STATE_NOT_INITIALIZED(0), CONNECTION_STATE_DISCONNECTED(1), CONNECTION_STATE_CONNECTING(2), CONNECTION_STATE_CONNECTED(3), CONNECTION_STATE_RECONNECTING(4), CONNECTION_STATE_FAILED(5); private int value; private CONNECTION_STATE_TYPE(int v) { value = v; } public static int getValue(CONNECTION_STATE_TYPE type) { return type.value; } } public int localUid; public String channelId; public RtcConnection() { channelId = ""; localUid = Constants.DEFAULT_CONNECTION_ID; } public RtcConnection(String channelId, int uid) { this.channelId = channelId; this.localUid = uid; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("channelId=").append(channelId); sb.append("localUid=").append(localUid); return sb.toString(); } }
Attributes
- channelId
- The channel name.
- localUid
- The ID of the local user.