Package ai.nexconn.chat.handler
Interface ConnectHandler
-
- All Implemented Interfaces:
public interface ConnectHandlerConnection 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.
-
-
Method Summary
-
-
Method Detail
-
onResult
abstract Unit onResult(String userId, NCError error)
Connection result callback.
- Parameters:
userId- The user ID on success; null on failureerror- Error info on failure; null on success
-
onDatabaseOpened
Unit onDatabaseOpened(Boolean isRecreated, NCError error)
Called when the local database has been opened (or failed to open).
- Parameters:
isRecreated- true if the database was recreated (e.g.error- null on success; error info on failure
-
-
-
-