agora_chat_SDK  3.8.2
agorajavachatSDK
Public Member Functions | List of all members
io.agora.ConnectionListener Interface Reference

Public Member Functions

void onConnected ()
 
void onDisconnected (final int errorCode)
 

Detailed Description

Chat connection listener For the occasion of onDisconnected during unstable signal condition, you don't need to reconnection manually, chat SDK will handle it automatically There are two states: connected and disconnected

Note: Do not update UI based on those methods, because this is called on worker thread. Also do not put heavy computation work here, which might block other listeners to handle this connection event.

    Register:
    ChatClient.getInstance().chatManager().addConversationListener(mConnectionListener);
    Unregister:
    ChatClient.getInstance().chatManager().removeConversationListener(mConnectionListener);

Member Function Documentation

void io.agora.ConnectionListener.onConnected ( )

Call back when connected to chat server successfully

void io.agora.ConnectionListener.onDisconnected ( final int  errorCode)

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