hyphenate_SDK3.0
3.6.2
hyphenatejavaIMSDK
|
Public Member Functions | |
void | onConnected () |
void | onDisconnected (final int errorCode) |
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)
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