Connect Params
Connection parameters.
Contains the required parameters and optional configuration for connecting to the server.
Usage example:
// simplest usage (required parameters only)
val params = ConnectParams("your-token")
// with optional configuration
val params = ConnectParams("your-token").apply {
timeLimit = 10
}
NCEngine.connect(params) { userId, error ->
if (error == null) {
// connected successfully
}
}Content copied to clipboard
Parameters
token
user authentication token, required
Properties
Functions
Link copied to clipboard
Whether to kick out the reconnecting device when another device is already connected.
Link copied to clipboard
Connection timeout in seconds. Defaults to -1 (no limit).
Link copied to clipboard
Whether to kick out the reconnecting device when another device is already connected.
Link copied to clipboard
Connection timeout in seconds. Defaults to -1 (no limit).