# ConnectCallback

public abstract class ConnectCallback

连接服务器回调类。

## Constructors

IRongCoreCallback.ConnectCallback
Link copied to clipboard
public void IRongCoreCallback.ConnectCallback()

## Functions

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