Agora Server Gateway SDK Java API Reference
Loading...
Searching...
No Matches
io.agora.rtc.RtcConnInfo Class Reference

Public Member Functions

 RtcConnInfo ()
 
 RtcConnInfo (int id, java.lang.String channelId, int state, java.lang.String localUserId, int internalUid)
 
int getId ()
 
void setId (int id)
 
java.lang.String getChannelId ()
 
void setChannelId (java.lang.String channelId)
 
int getState ()
 
void setState (int state)
 
java.lang.String getLocalUserId ()
 
void setLocalUserId (java.lang.String localUserId)
 
int getInternalUid ()
 
void setInternalUid (int internalUid)
 

Private Attributes

int id
 
java.lang.String channelId
 
int state
 
java.lang.String localUserId
 
int internalUid
 

Detailed Description

The RtcConnInfo class.

Constructor & Destructor Documentation

◆ 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 )

Constructor.

Parameters
id
channelId
stateConnection state.
  • 1: The SDK is disconnected from the server.
  • 2: The SDK is connecting to the server.
  • 3: The SDK is connected to the server and has joined a channel. You can now publish or subscribe to a track in the channel.
  • 4: The SDK keeps rejoining the channel after being disconnected from the channel, probably because of network issues.
  • 5: The SDK fails to connect to the server or join the channel.
localUserId
internalUid

Member Function Documentation

◆ 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)

Member Data Documentation

◆ channelId

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

◆ id

int io.agora.rtc.RtcConnInfo.id
private

◆ internalUid

int io.agora.rtc.RtcConnInfo.internalUid
private

◆ localUserId

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

◆ state

int io.agora.rtc.RtcConnInfo.state
private

The documentation for this class was generated from the following file: