hyphenate_SDK3.0  3.5.0
hyphenatejavaIMSDK
Public Member Functions | List of all members
com.hyphenate.EMConnectionListener Interface Reference

Public Member Functions

void onConnected ()
 
void onDisconnected (final int errorCode)
 

Detailed Description

Hyphenate IM connection listener For the occasion of onDisconnected during unstable signal condition, you don't need to reconnection manually, Hyphenate 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. com.hyphenate.chat.EMClient.addConnectionListener(final EMConnectionListener)

Member Function Documentation

void com.hyphenate.EMConnectionListener.onConnected ( )

callback when connected to Hyphenate IM server successfully

void com.hyphenate.EMConnectionListener.onDisconnected ( final int  errorCode)

callback when disconnected from Hyphenate IM server successfully


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