ConnectHandler

public interface ConnectHandler

Connection result callback.

Delivers the result when ai.nexconn.chat.NCEngine.connect is called. On success, onResult provides the connected user ID. On failure, onResult provides the error info. Additionally, onDatabaseOpened notifies when the local database is opened.

Functions

Link copied to clipboard
public Unit onDatabaseOpened(Boolean isRecreated, NCError error)

Called when the local database has been opened (or failed to open).

Link copied to clipboard
public abstract Unit onResult(String userId, NCError error)

Connection result callback.