ConnectionCandidate

data class ConnectionCandidate(val id: String, val name: String, authenticationDigits: String?)

Connection candidate that represents a remote device. isIncomingConnection is used to distinguish between connections intitiated by this app and connections initiated by other apps.

Constructors

Link copied to clipboard
constructor(id: String, name: String, authenticationDigits: String?)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard

Authentication digits are only available for incoming connections

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun connect(localDeviceName: String, authValidator: suspend (String) -> Boolean = { true }): Result<Connection>

Tries to connect to the remote endpoint and returns a Connection if result is successful