Package-level declarations

Types

Link copied to clipboard
abstract class MdocTransport

An abstraction of a ISO/IEC 18013-5:2021 device retrieval method.

Link copied to clipboard

Thrown by MdocTransport.waitForMessage if the transport was closed by another coroutine while waiting.

Link copied to clipboard

Thrown if an unrecoverable error occurs.

Link copied to clipboard

An interface used to create MdocTransport instances.

Link copied to clipboard
data class MdocTransportOptions(val bleUseL2CAP: Boolean = false)

Options for using a MdocTransport.

Link copied to clipboard

Thrown if transport-specific termination was requested but not supported by the underlying tranposrt.

Link copied to clipboard
class NfcTransportMdoc(val role: MdocRole, options: MdocTransportOptions, val connectionMethod: MdocConnectionMethod) : MdocTransport
Link copied to clipboard

Functions

Link copied to clipboard

A helper for advertising a number of connections to a remote peer.

Link copied to clipboard
suspend fun List<MdocTransport>.waitForConnection(eSenderKey: EcPublicKey, coroutineScope: CoroutineScope = CoroutineScope(Dispatchers.IO)): MdocTransport

A helper for waiting until someone connects to a transport.