hyphenate_SDK3.0  3.0.1
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 During weak signal condition, and onDisconnected triggered, app don't need do reconnection by itself, Hyphenate SDK do it in the internal part We only support 2 states : connected, disconnected

And please be careful, APP should not update UI in this api since this is called from worker thread or heavy work which will block other listener to handle this connection event. com.hyphenate.chat.EMClient.addConnectionListener(final EMConnectionListener)

Member Function Documentation

void com.hyphenate.EMConnectionListener.onConnected ( )

Triggered callback when successfully connected to Hyphenate IM server

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

Triggered callback when disconnected from Hyphenate IM server


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