add Connection Status Listener
public static boolean addConnectionStatusListener(IRongCoreListener.ConnectionStatusListener listener)
Adds a listener for connection status changes.
When the callback status is TOKEN_INCORRECT, you need to obtain a valid token and actively call connect. If using IMKit, use the method of the same name in RongIM setConnectionStatusListener
.
Since
5.1.6
Parameters
listener
The listener for connection status changes.