# ConnectCallback

public abstract class ConnectCallback

连接服务器回调类。

## Functions

onDatabaseOpened
Link copied to clipboard
public abstract void onDatabaseOpened(RongIMClient.DatabaseOpenStatus code)
public void onDatabaseOpened(RongIMClient.DatabaseOpenStatus code, boolean recreate)
两个 onDatabaseOpened 二选一即可。
onError
Link copied to clipboard
public abstract void onError(RongIMClient.ConnectionErrorCode e)
错误时回调。
onSuccess
Link copied to clipboard
public abstract void onSuccess(String t)
成功时回调。